Fix "jQuery.fn.submit() event shorthand is deprecated" warning
This patch changed the code to use the recommended .trigger('submit') instead of the deprecated shorthand event .submit(). For more information about this deprecation, please refer [1]. I am getting this warning while deleting the "Application Credentials" under Identity dashboard. [1] https://api.jquery.com/submit-shorthand/ Change-Id: Icd86ccd6ec7c7b0df0e25254751caa7bc0a5f8e1
This commit is contained in:
parent
28ca4c270f
commit
0d6d2f1290
|
@ -342,7 +342,7 @@ horizon.datatables.confirm = function(action) {
|
|||
el.value = $action.attr('value');
|
||||
$form
|
||||
.append(el)
|
||||
.submit();
|
||||
.trigger('submit');
|
||||
|
||||
modal.modal('hide');
|
||||
horizon.modals.modal_spinner(gettext("Working"));
|
||||
|
|
Loading…
Reference in New Issue