Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
$(document).off('click', '.ie-content .ie-submit').on('click', '.ie-content .ie-submit', f..
Decoded Output download
<? $(document).off('click', '.ie-content .ie-submit').on('click', '.ie-content .ie-submit', function () {
var $popover = $(this).closest('.ie-content');
var $trigger = $popover.data('trigger');
@isset($val)
{{ $val }}
@else
var val = $popover.find('.ie-input').val();
@endisset
var original = $trigger.data('original');
if (val == original) {
$('[data-toggle="popover"]').popover('hide');
return;
}
var data = {
_token: LA.token,
_method: 'PUT',
_edit_inline: true,
};
data[$trigger.data('name')] = val;
$.ajax({
url: "{{ $resource }}/" + $trigger.data('key'),
type: "POST",
data: data,
success: function (data) {
toastr.success(data.message);
{{ $slot }}
$trigger.data('value', val)
.data('original', val);
$('[data-toggle="popover"]').popover('hide');
},
statusCode: {
422: function(xhr) {
$popover.find('.error').empty();
var errors = xhr.responseJSON.errors;
for (var key in errors) {
$popover.find('.error').append('<div><i class="fa fa-times-circle-o"></i> '+errors[key]+'</div>')
}
}
}
});
});
?>
Did this file decode correctly?
Original Code
$(document).off('click', '.ie-content .ie-submit').on('click', '.ie-content .ie-submit', function () {
var $popover = $(this).closest('.ie-content');
var $trigger = $popover.data('trigger');
@isset($val)
{{ $val }}
@else
var val = $popover.find('.ie-input').val();
@endisset
var original = $trigger.data('original');
if (val == original) {
$('[data-toggle="popover"]').popover('hide');
return;
}
var data = {
_token: LA.token,
_method: 'PUT',
_edit_inline: true,
};
data[$trigger.data('name')] = val;
$.ajax({
url: "{{ $resource }}/" + $trigger.data('key'),
type: "POST",
data: data,
success: function (data) {
toastr.success(data.message);
{{ $slot }}
$trigger.data('value', val)
.data('original', val);
$('[data-toggle="popover"]').popover('hide');
},
statusCode: {
422: function(xhr) {
$popover.find('.error').empty();
var errors = xhr.responseJSON.errors;
for (var key in errors) {
$popover.find('.error').append('<div><i class="fa fa-times-circle-o"></i> '+errors[key]+'</div>')
}
}
}
});
});
Function Calls
None |
Stats
MD5 | 2c0a8d3a57ef24d86b9acd72789bb9dc |
Eval Count | 0 |
Decode Time | 90 ms |