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
This commit is contained in:
Jean-Philippe Lang
2012-02-11 13:05:41 +00:00
parent 2ec55c5337
commit 60b9e59d15
5 changed files with 66 additions and 14 deletions

View File

@@ -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();
}