summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-06-19 20:09:05 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-06-19 20:09:05 +0000
commit0fccf648a79e4aa05034666610dfe49390eda83d (patch)
tree98284d53ce720b3bd4310458d70aadba84a883a8 /public
parentf11bba5537b10423e2d7c3c0bf91d744396e227c (diff)
downloadredmine-0fccf648a79e4aa05034666610dfe49390eda83d.tar.gz
redmine-0fccf648a79e4aa05034666610dfe49390eda83d.zip
Fixed r14339 for when closing the dialog by using the upper-right cross (#19851).
git-svn-id: http://svn.redmine.org/redmine/trunk@14340 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/application.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index 775ad592f..0fe2c4cd6 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -391,6 +391,8 @@ function showModal(id, width, title) {
resizable: false,
dialogClass: 'modal',
title: title
+ }).on('dialogclose', function(){
+ $(".modal").zIndex(101);
});
el.find("input[type=text], input[type=submit]").first().focus();
}
@@ -403,8 +405,6 @@ function hideModal(el) {
modal = $('#ajax-modal');
}
modal.dialog("close");
- // restores existing modals in front of the transparent background
- $(".modal").zIndex(101);
}
function submitPreview(url, form, target) {