Commit 9c661010 authored by jonnybradley's avatar jonnybradley

[FIX] confirm: IE still doesn't support the form attribute on input or button,...

[FIX] confirm: IE still doesn't support the form attribute on input or button, so replace it with an onclick handler again
parent 7ad5fc44
Pipeline #50028508 failed with stages
in 27 minutes and 29 seconds
......@@ -172,8 +172,8 @@ function simpleConfirmForm(clickedElement, newForm, title, ticket) {
'</div>' +
'<div class="modal-footer">' +
'<button type="button" class="btn btn-default btn-dismiss" data-dismiss="modal">' + tr('Close') + '</button>' +
'<input type="submit" form="' + $(newForm).prop('id') + '" class="btn btn-primary" value="'
+ tr('OK') + '"/> ' +
'<input type="submit" class="btn btn-primary" value="' + tr('OK') +
'" onclick="$(\'#' + $(newForm).attr('id') + '\').submit(); return false;"> ' +
'</div>'
);
return target;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment