2015-10-13 135 views
2

我在jquery jtable中删除。它检查约束并返回一个错误。当我按下该错误的关闭按钮时,deleteDialog会再次出现。我不希望对话框重新出现,而是希望关闭对话框并加载jtable。 jtable中是否有任何recordsNotDeleted事件?请帮助记录事件不删除。 Jtable jquery

enter image description here

在有注意力的标题关闭对话框,我想这个对话框加上的你确定标题的对话框?被关闭

+0

请把你的代码在这里,所以任何人可以帮你。 –

+0

当我遇到错误时,我正在寻找要触发的事件 – Sana

+2

[JTable](http://www.jtable.org/) – abpatil

回答

3

这对我来说是诀窍。

$("button[role='button']:contains('Close')").click(function() { 
     $('.ui-dialog').filter(function() { 
      return $(this).css("display") === "block"; 
     }).find('.ui-dialog-content').dialog('close'); 
    }); 

参考:Close dialog on click (anywhere)