Title: the alert callback bug Post by: l3917055 on September 17, 2012, 11:02:56 PM when I use alert callback like this
$.messager.alert("提示", "保存成功", "info", function(){ $.messager.progress("close")}); when the callback is fired, will display such a error message "Uncaught TypeError: Cannot read property 'options' of undefined" why? and how to fix it Title: Re: the alert callback bug Post by: l3917055 on September 17, 2012, 11:06:39 PM $.ajax({ url: $$.getRootPath() + currentPath + 'SetProxyUser', cache: false, type: "post", data: { userIds: userIds.join($$.splitor), goodsOwnerID: goodsOwnerID }, beforeSend: function () { $.messager.progress("close"); }, error: function () { $$.progressEnd(); }, success: function (result) { if (result.Success) { $.messager.alert("提示", "保存成功", "info", function(){ $.messager.progress("close");}); } else { $.messager.alert("提示", "保存失败" + result.Message, "info", function(){$.messager.progress("close");}); } } }); Title: Re: the alert callback bug Post by: l3917055 on September 17, 2012, 11:10:33 PM I'm using easyui 1.3.1
Title: Re: the alert callback bug Post by: l3917055 on September 18, 2012, 12:33:40 AM this condition not awlays heppen.
only when I use a dialog $("#popupProxyUser").dialog({ href: url,//this url is a other page which i find the alert callback bug title: "代理用户", width: 600, height: 500, modal: true, closed: false, cache: false }); |