Alexander 4 лет назад
Родитель
Сommit
c6fa24f9c5

+ 1 - 0
inc/classes/BxDolUploader.php

@@ -277,6 +277,7 @@ abstract class BxDolUploader extends BxDolFactory
             'template_ghost' => $sJsValue,
             'multiple' => $isMultiple ? 1 : 0,
             'storage_private' => isset($aParams['storage_private']) ? $aParams['storage_private'] : 1,
+            'is_init_reordering' => isset($aParams['is_init_reordering']) ? $aParams['is_init_reordering'] : 0,
             'bx_if:restore_ghosts' => [
                 'condition' => isset($aParams['is_init_ghosts']) ? $aParams['is_init_ghosts'] : 1,
                 'content' => [

+ 2 - 0
modules/boonex/files/classes/BxFilesModule.php

@@ -479,6 +479,8 @@ class BxFilesModule extends BxBaseModTextModule
                     $this->_oDb->moveFilesToFolder($aFiles, $iFolder);
             }
         }
+
+        echoJson(['success' => true]);
     }
 
     public function actionCreateFolder() {

+ 1 - 1
modules/boonex/files/js/toolbar_tools.js

@@ -85,7 +85,7 @@ BxFilesBrowserTools.prototype.onSelectAll = function(el) {
         closest('.bx-files-text-unit-simple-row').
         siblings().
         find('input[type=checkbox]').
-        attr('checked', $(el).attr('checked') == 'checked').change(function(){
+        prop('checked', $(el).prop('checked')).change(function(){
             $(el).attr('checked', false);
         });
 };

+ 3 - 0
modules/boonex/files/template/css/main.css

@@ -157,4 +157,7 @@
 }
 .bx-files-bulk-actions {
     display: none;
+}
+.bx-files-input-checkbox-select-all {
+    display: inline-block!important;
 }

+ 1 - 1
modules/boonex/files/template/files_browser_toolbar.html

@@ -64,7 +64,7 @@
 <bx_if:select_all_checkbox>
 <div class="bx-def-padding-sec bx-files-text-unit-simple-row">
     <div>
-        <input type="checkbox" class="bx-def-font-inputs bx-form-input-checkbox bx-def-margin-right" id="bx-files-browser-select-all-__unique_ident__" onchange="__js_object__.onSelectAll(this);" />
+        <input type="checkbox" class="bx-def-font-inputs bx-form-input-checkbox bx-files-input-checkbox-select-all bx-def-margin-right" id="bx-files-browser-select-all-__unique_ident__" onchange="__js_object__.onSelectAll(this);" />
         <label for="bx-files-browser-select-all-__unique_ident__"><bx_text:_Select_all /></label>
     </div>
 </div>