Merge branch 'develop' of https://git.trustie.net/jacknudt/trustieforge into develop

This commit is contained in:
cxt 2016-11-04 20:41:18 +08:00
commit e25096e7e6
1 changed files with 8 additions and 7 deletions

View File

@ -426,13 +426,14 @@ function hideModal(el) {
if($("#popupWrap").length > 0){ if($("#popupWrap").length > 0){
$("#popupWrap").hide(); $("#popupWrap").hide();
} }
else{
var modal; var modal;
if (el) { if (el) {
modal = $(el).parents('.ui-dialog-content'); modal = $(el).parents('.ui-dialog-content');
} else { } else {
modal = $('#ajax-modal'); modal = $('#ajax-modal');
} }
if(modal != null){
modal.dialog("close"); modal.dialog("close");
} }
} }