Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/ecom1.picotech.app/public_html_ecom1/Modules/FormBuilder/Resources/assets/js/ drwxr-xr-x |
Viewing file: Select action/file-type: "use strict"; function handleAjaxError(error) { var errMsg = jsLang("An error occurred while processing your request"); var errTitle = "Error"; // check if this is a validation error if (error.status === 422) { var json = error.responseJSON; if (json && json.message) errTitle = json.message; if (json.errors) { errMsg = ""; Object.keys(json.errors).forEach(function (key) { var messages = json.errors[key]; messages.forEach(function (message) { errMsg += key.toUpperCase() + ": " + message + "\n"; }); }); } } swal({ title: errTitle, text: errMsg, icon: "error", }); return errMsg; } function sConfirm(message, callback, type, title, cancelled) { var title = title || jsLang("Are you sure?"); var type = type || "warning"; var message = message || "Message"; var callback = callback || function () {}; var cancelled = cancelled || function () {}; swal({ title: title, text: message, icon: type, cancelButtonColor: "#d33", disableButtonsOnConfirm: true, dangerMode: type == "warning" || type == "danger", buttons: true, }).then(function (result) { if (result) { callback(); } else { cancelled(); } }); } if (window.Clipboard && Clipboard.isSupported && Clipboard.isSupported()) { var clip = new Clipboard(".clipboard"); clip.on("success", function (e) { var ref = $(e.trigger); ref.html('<i class="fa fa-check-circle"></i> ' + ref.data("message")); setTimeout(function () { ref.html('<i class="fa fa-clipboard"></i> ' + ref.data("original")); }, 1200); }); } function initilizeConfirmListeners() { $(".confirm").click(function (e) { e.preventDefault(); var ref = $(this); var data = ref.data(); var message = data.message ? data.message : ref.attr("title"); sConfirm(message, function () { window.location = ref.attr("href"); }); }); $(".confirm-form").click(function (e) { e.preventDefault(); var ref = $(this); var data = ref.data(); var message = data.message ? data.message : ref.attr("title"); var form = $("#" + ref.data("form")); if (!form.parsley().validate()) return; sConfirm(message, function () { form.trigger('submit'); }); }); } $(function () { $('[data-toggle="tooltip"]').tooltip(); setTimeout(function () { initilizeConfirmListeners(); }, 1000); }); |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0037 ]-- |