##// END OF EJS Templates
Fixed r14339 for when closing the dialog by using the upper-right cross (#19851)....
Jean-Philippe Lang -
r13958:0fccf648a79e
parent child
Show More
@@ -391,6 +391,8 function showModal(id, width, title) {
391 resizable: false,
391 resizable: false,
392 dialogClass: 'modal',
392 dialogClass: 'modal',
393 title: title
393 title: title
394 }).on('dialogclose', function(){
395 $(".modal").zIndex(101);
394 });
396 });
395 el.find("input[type=text], input[type=submit]").first().focus();
397 el.find("input[type=text], input[type=submit]").first().focus();
396 }
398 }
@@ -403,8 +405,6 function hideModal(el) {
403 modal = $('#ajax-modal');
405 modal = $('#ajax-modal');
404 }
406 }
405 modal.dialog("close");
407 modal.dialog("close");
406 // restores existing modals in front of the transparent background
407 $(".modal").zIndex(101);
408 }
408 }
409
409
410 function submitPreview(url, form, target) {
410 function submitPreview(url, form, target) {
General Comments 0
You need to be logged in to leave comments. Login now