靜兒De角落
2017-03-03 06:57Java 子页面Bootstrap 模态对话框关闭后,主页面无响应(IE 11)
// 父页面抽取专家事件
function chouquZJClick(obj) {
var unitCode = $(obj.parentNode.parentNode).find('input[ID$=unitCode]').val();
var professionalFieldCodeOrg = $(obj.parentNode.parentNode).find('input[ID$=professionalFieldCodeOrg]').val();
var selectionMethod = $(obj.parentNode.parentNode).find('input[ID$=selectionMethod]').val();
commonProgress("请稍后...");
var url = "<%=request.getContextPath()%>/jdjcrzjcjg/chouquZJInfoInit/${id}&" + professionalFieldCodeOrg + "&" + unitCode + "&" + selectionMethod;
//调用对话框
commonModal(url);
top.$('#common-modal').on('hidden.bs.modal', function() {
if (top.$("#refreshFlg").val() == 1) {
setTimeout("window.location.reload(true)",100);
}
top.$("#common-progress").dialog("close");
});
//////////////////////
//子页面
<button onclick="forSave();" class="btn btn-xs btn-success"
type="button" style="margin-right: 20px;">
<i class="icon-save"></i> 保存
</button>
<button onclick="forClose();" type="button"
class="btn btn-xs btn-danger" data-dismiss="modal">
<i class="icon-remove"></i>取消
</button>
<button type="button" data-dismiss="modal" id="closeClick"
style="display: none;" />
+++++++++++++++++
//子页面保存
function forSave() {
commonProgress("保存中,请稍后...");
$.ajax({
type:'POST',
data:$("#saveZJForm").serialize(),
url:$("#saveZJForm").attr('action'),
success:function(data){
$("#refreshFlg").val(1);
$("#closeClick")[0].click();
},
error:function(){
commonAlert("保存出错!");
}
});
}
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- 前端小白,求问有关bootstrap的模态框的问题
- html5
- css3
- javascript
- bootstrap
- jquery
- 1个回答
- bootstrap table怎么想java传参数
- spring
- java-ee
- intellij-idea
- 1个回答
- Bootstrap Modal中的JQuery验证表单在验证后不会提交
- javascript
- php
- jquery
- 3个回答
- 在注销期间显示在Codeigniter 3里面的bootstrap模态箱子的网站视图
- codeigniter
- php
- jquery
- 1个回答
- 如何打开一个url作为bootstrap模态窗口?
- wordpress
- php
- 1个回答