Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /uploads/assets/installer/js/ drwxr-xr-x | |
| Viewing file: Select action/file-type: (function ($) {
"use strict";
//basicform submit
$("#productform").on('submit', function(e){
e.preventDefault();
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
type: 'POST',
url: this.action,
data: new FormData(this),
dataType: 'json',
contentType: false,
cache: false,
processData:false,
beforeSend: function() {
$('.basicbtn').attr('disabled','')
},
success: function(response){
$('.basicbtn').removeAttr('disabled')
Sweet('success',response)
success(response)
},
error: function(xhr, status, error)
{
$('.basicbtn').removeAttr('disabled')
$('.errorarea').show();
$.each(xhr.responseJSON.errors, function (key, item)
{
Sweet('error',item)
$("#errors").html("<li class='text-danger'>"+item+"</li>")
});
errosresponse(xhr, status, error);
}
})
});
$("#basicform").on('submit', function(e){
e.preventDefault();
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
type: 'POST',
url: this.action,
data: new FormData(this),
dataType: 'json',
contentType: false,
cache: false,
processData:false,
beforeSend: function() {
$('.basicbtn').attr('disabled','')
},
success: function(response){
$('.basicbtn').removeAttr('disabled')
Sweet('success',response)
success(response)
},
error: function(xhr, status, error)
{
$('.basicbtn').removeAttr('disabled')
$('.errorarea').show();
$.each(xhr.responseJSON.errors, function (key, item)
{
Sweet('error',item)
$("#errors").html("<li class='text-danger'>"+item+"</li>")
});
errosresponse(xhr, status, error);
}
})
});
$(".basicform").on('submit', function(e){
e.preventDefault();
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
var basicbtnhtml=$('.basicbtn').html();
$.ajax({
type: 'POST',
url: this.action,
data: new FormData(this),
dataType: 'json',
contentType: false,
cache: false,
processData:false,
beforeSend: function() {
$('.basicbtn').html("Please Wait....");
$('.basicbtn').attr('disabled','')
},
success: function(response){
$('.basicbtn').removeAttr('disabled')
Sweet('success',response);
$('.basicbtn').html(basicbtnhtml);
success(response);
},
error: function(xhr, status, error)
{
$('.basicbtn').html(basicbtnhtml);
$('.basicbtn').removeAttr('disabled')
$('.errorarea').show();
$.each(xhr.responseJSON.errors, function (key, item)
{
Sweet('error',item)
$("#errors").html("<li class='text-danger'>"+item+"</li>")
});
errosresponse(xhr, status, error);
}
})
});
//id basicform1 when submit
$("#basicform1").on('submit', function(e){
e.preventDefault();
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
$.ajax({
type: 'POST',
url: this.action,
data: new FormData(this),
dataType: 'json',
contentType: false,
cache: false,
processData:false,
success: function(response){
success(response)
},
error: function(xhr, status, error)
{
$('.errorarea').show();
$.each(xhr.responseJSON.errors, function (key, item)
{
Sweet('error',item)
$("#errors").html("<li class='text-danger'>"+item+"</li>")
});
errosresponse(xhr, status, error);
}
})
});
$(".checkAll").on('click',function(){
$('input:checkbox').not(this).prop('checked', this.checked);
});
})(jQuery);
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0045 ]-- |