提交 704d8e1e 编写于 作者: C Catouse

* fix error of modal trigger on load ajax content.

上级 312b5f99
......@@ -273,6 +273,8 @@
else
{
$.get(options.url, function(data)
{
try
{
var $data = $(data);
if ($data.hasClass('modal-dialog'))
......@@ -287,6 +289,11 @@
{
$body.wrapInner($data);
}
}
catch(e)
{
$modal.html(data);
}
$modal.callEvent('loaded.zui.modal',
{
modalType: 'ajax'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册