File: //usr/share/usermin/authentic-theme/extensions/file-manager/file-manager-reinit.min.js
/*!
* Authentic Theme (https://github.com/authentic-theme/authentic-theme)
* Copyright Ilia Rostovtsev <ilia@virtualmin.com>
* Licensed under MIT (https://github.com/authentic-theme/authentic-theme/blob/master/LICENSE)
*/
function checkSelected(){return _f__table().dataTable().$("tr.hl-aw",{filter:"applied"}).length}function selectAll(){const e=document.querySelectorAll(".container-fluid .ui_checked_columns");for(let t=0;t<e.length;t++){e[t].getElementsByTagName("input")[0].checked||rowClick(e[t])}}function invertSelection(){const e=document.querySelectorAll(".container-fluid .ui_checked_columns");for(let t=0;t<e.length;t++)rowClick(e[t])}function renameDialog(e){e=Convert.htmlUnEscape(e),$($v__fm__container_fluid+" #renameForm input[name=name]").val(e),$($v__fm__container_fluid+" #renameForm input[name=file]").val(e),$($v__fm__container_fluid+" #renameDialog").modal({backdrop:"static",keyboard:!0,show:!0})}function removeDialog(){if(checkSelected()){if($("#items-to-remove").html(""),$(".ui_checked_checkbox input[type='checkbox']:checked").each(function(){$("#items-to-remove").append(Convert.htmlEscape($(this).val()+"<br>"))}),config_portable_module_filemanager_move_to_trash){var e=__f___gdArr();e&&1===e.length&&".Trash"===e[0].value&&(fm_deletion_empty_trash=1,setTimeout(function(){fm_deletion_empty_trash=0},1))}$("#removeDialog").modal({backdrop:"static",keyboard:!0,show:!0})}}function uploadFiles(){const e=document.getElementById("upfiles");if(e.files.length>0)$("#upload-form").submit();else{if($('button[onclick="uploadFiles()"]').hasClass("disabled"))return;e.click()}}function countUploads(){}