Server IP : 150.95.80.236 / Your IP : 3.139.81.143 Web Server : Apache System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64 User : social-telecare ( 10000) PHP Version : 7.4.33 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/vhosts/pcu.in.th/uat.pcu.in.th/demo15/src/js/custom/apps/file-manager/ |
Upload File : |
"use strict"; // Class definition var KTAppFileManagerSettings = function () { var form; // Private functions var handleForm = function() { const saveButton = form.querySelector('#kt_file_manager_settings_submit'); saveButton.addEventListener('click', e => { e.preventDefault(); saveButton.setAttribute("data-kt-indicator", "on"); // Simulate process for demo only setTimeout(function(){ toastr.options = { "closeButton": true, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-top-right", "preventDuplicates": false, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" }; toastr.success('File manager settings have been saved'); saveButton.removeAttribute("data-kt-indicator"); }, 1000); }); } // Public methods return { init: function(element) { form = document.querySelector('#kt_file_manager_settings'); handleForm(); } }; }(); // On document ready KTUtil.onDOMContentLoaded(function () { KTAppFileManagerSettings.init(); });