Merge "Fix deprecated use of 'jQuery.fn.change()' shorthand event"
This commit is contained in:
commit
a80ffceac4
@ -279,7 +279,7 @@ horizon.forms.init_themable_select = function ($elem) {
|
||||
|
||||
// Set the select if necessary
|
||||
if ($select.val() !== value) {
|
||||
$select.val(value).change();
|
||||
$select.val(value).trigger("change");
|
||||
}
|
||||
});
|
||||
|
||||
@ -318,7 +318,7 @@ horizon.forms.init_themable_select = function ($elem) {
|
||||
}
|
||||
|
||||
// Add the new list to the dropdown.
|
||||
$select.siblings('.dropdown-menu').html(list).change();
|
||||
$select.siblings('.dropdown-menu').html(list).trigger("change");
|
||||
$select.trigger('change');
|
||||
});
|
||||
|
||||
|
@ -349,7 +349,7 @@ horizon.addInitFunction(horizon.modals.init = function() {
|
||||
json_data = JSON.parse(data);
|
||||
field_to_update = $("#" + add_to_field_header);
|
||||
field_to_update.append("<option value='" + json_data[0] + "'>" + json_data[1] + "</option>");
|
||||
field_to_update.change();
|
||||
field_to_update.trigger("change");
|
||||
field_to_update.val(json_data[0]);
|
||||
} else {
|
||||
horizon.modals.success(data, textStatus, jqXHR);
|
||||
|
Loading…
Reference in New Issue
Block a user