弹框BUG修改
This commit is contained in:
parent
9b13efd912
commit
9ef8f0f612
|
@ -1,7 +1,7 @@
|
||||||
<% if @flag %>
|
<% if @flag %>
|
||||||
hideModal();
|
hideModal();
|
||||||
alert('更新成功')
|
alert('更新成功');
|
||||||
$(".re_search").submit(); // 为了刷新
|
$(".re_search").submit(); // 为了刷新
|
||||||
<%else%>
|
<%else%>
|
||||||
$("#upload_file_count").html('(更新失败)')
|
$("#upload_file_count").html('(更新失败)');
|
||||||
<%end %>
|
<%end %>
|
|
@ -426,13 +426,15 @@ function hideModal(el) {
|
||||||
if($("#popupWrap").length > 0){
|
if($("#popupWrap").length > 0){
|
||||||
$("#popupWrap").hide();
|
$("#popupWrap").hide();
|
||||||
}
|
}
|
||||||
var modal;
|
else{
|
||||||
if (el) {
|
var modal;
|
||||||
modal = $(el).parents('.ui-dialog-content');
|
if (el) {
|
||||||
} else {
|
modal = $(el).parents('.ui-dialog-content');
|
||||||
modal = $('#ajax-modal');
|
} else {
|
||||||
|
modal = $('#ajax-modal');
|
||||||
|
}
|
||||||
|
modal.dialog("close");
|
||||||
}
|
}
|
||||||
modal.dialog("close");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function submitPreview(url, form, target) {
|
function submitPreview(url, form, target) {
|
||||||
|
|
Loading…
Reference in New Issue