include $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_after.php"; die; } elseif ($serviceEditDoc == CWebDavLogOnlineEditBase::LOCAL_SERVICE_NAME) { if (isset($_REQUEST['primaryAction']) && $_REQUEST['primaryAction'] == 'commit' && $editComponentParams['action'] == 'start') { $editComponentParams['action'] = 'commit'; } $APPLICATION->RestartBuffer(); $APPLICATION->IncludeComponent('bitrix:webdav.doc.edit.local', '', $editComponentParams); include $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_after.php"; die; } } if (!empty($_REQUEST['createDoc'])) { $serviceEditDoc = empty($_REQUEST['createIn']) ? '' : strtolower($_REQUEST['createIn']); if (empty($serviceEditDoc) || $serviceEditDoc == CWebDavLogOnlineEditBase::DEFAULT_SERVICE_NAME) { $serviceEditDoc = CWebDavTools::getServiceEditDocForCurrentUser(); } $serviceEditDoc = strtolower($_REQUEST['createIn']); switch ($serviceEditDoc) { case 'g': case 'google': case 'gdrive': $serviceEditDoc = CWebDavLogOnlineEditBase::GOOGLE_SERVICE_NAME; break; case 's': case 'skydrive': case 'sky-drive': case 'onedrive': $serviceEditDoc = CWebDavLogOnlineEditBase::SKYDRIVE_SERVICE_NAME; break; case 'l':
?> BX(function() { WDUploadDroppedFiles(); }); <?php } ?> BX(function() { var dropBoxNode = BX('<?php echo $arParams['GRID_ID']; ?> '); var dropbox = new BX.DD.dropFiles(dropBoxNode); if (dropbox && dropbox.supported()) { BX.addCustomEvent(dropbox, 'dropFiles', WDUploadDroppedFiles); //BX.addCustomEvent(dropbox, 'dragEnter', function() {BX.addClass(dropBoxNode, 'droptarget');}); //BX.addCustomEvent(dropbox, 'dragLeave', function() {BX.removeClass(dropBoxNode, 'droptarget');}); } }); </script> <script type="text/javascript"> BX.message({ 'wd_service_edit_doc_default': '<?php echo CUtil::JSEscape(CWebDavTools::getServiceEditDocForCurrentUser()); ?> ' }); </script>
function WDUFGetServiceEditDoc() { return CWebDavTools::getServiceEditDocForCurrentUser(); }