summaryrefslogtreecommitdiffstats
path: root/public/javascripts
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-11 13:05:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-11 13:05:41 +0000
commit60b9e59d1580583ce1ab934349f4393f3ed13c63 (patch)
tree5aa4b3c56b9d0276d3c5b379658f877a739e24d0 /public/javascripts
parent2ec55c5337f9eaf35a30257a416d87f99f7bae27 (diff)
downloadredmine-60b9e59d1580583ce1ab934349f4393f3ed13c63.tar.gz
redmine-60b9e59d1580583ce1ab934349f4393f3ed13c63.zip
Displays the full form when creating a version from the issue form so that required custom fields can be filled (#7398).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8845 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/application.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/public/javascripts/application.js b/public/javascripts/application.js
index f0b493c39..2c4910c44 100644
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -321,7 +321,12 @@ function showModal(id, width) {
}
function hideModal(el) {
- var modal = Element.up(el, 'div.modal');
+ var modal;
+ if (el) {
+ modal = Element.up(el, 'div.modal');
+ } else {
+ modal = $('ajax-modal');
+ }
if (modal) {
modal.hide();
}