Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dialog回调不会被调用 #26

Closed
manageryzy opened this issue May 10, 2015 · 2 comments
Closed

dialog回调不会被调用 #26

manageryzy opened this issue May 10, 2015 · 2 comments

Comments

@manageryzy
Copy link

版本就是1.0.1,代码如下。

            $.dialog({
                title: sms.title ,
                content: sms.message ,
                button: ['确定', '删除'] ,
                callback: function (i) {
                    alert(i);
                    sms.hasDeleted = true;
                    user.save();
                    $(dom).remove();
                },
                end:function(i){
                    alert(i)
                }
            });

两个回调函数都没有被触发

@fayching
Copy link
Member

是通过这种方式
dia.on("dialog:action",function(e){
console.log(e.index)
});

@manageryzy
Copy link
Author

OK,多谢。issue可以关闭了么了呢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants