Image attribute: Migrate deprecated jQuery methods in JS widget

This commit is contained in:
Molkobain
2021-02-22 16:25:55 +01:00
parent 9c0966ff42
commit 933bddebe3

View File

@@ -95,7 +95,7 @@ $(function()
_bindEvents: function () {
const me = this;
$('#file_'+me.options.input_name).change(function () {
$('#file_'+me.options.input_name).on('change', function () {
$('#do_remove_'+me.options.input_name).val('0');
me.previewImage(this, '#preview_'+me.options.input_name+' img');
@@ -111,7 +111,7 @@ $(function()
$('#file_'+me.options.input_name).trigger('click');
});
$('#reset_'+me.options.input_name).click(function () {
$('#reset_'+me.options.input_name).on('click', function () {
if ($(this).prop('disabled')) {
return;
}
@@ -136,7 +136,7 @@ $(function()
}
});
$('#remove_'+me.options.input_name).click(function () {
$('#remove_'+me.options.input_name).on('click', function () {
if ($(this).prop('disabled')) {
return;
}