我尝试使用以下方式将默认打开和关闭功能绑定到所有对话框,但是没有任何工作。绑定关闭并打开所有对话框的功能
$(document).on("dialogopen", ".ui-dialog", function(event, ui) {
});
$(document).on("dialogclose", ".ui-dialog", function(event, ui) {
});
或
$(".ui-dialog").bind("open", function() {
});
$(".ui-dialog").bind("close", function() {
});
你有什么想法,有什么不对吗? 感谢您的帮助。
编辑:
我添加此功能来记录就绪功能。
我的猜测是,该插件可以防止冒泡到文档中,这些事件。 – Barmar
你必须将它分配给用来触发对话框的元素,而不是辅助类 –
似乎工作http://jsfiddle.net/arunpjohny/e9GRZ/1/ –