【发布时间】:2018-07-31 06:44:23
【问题描述】:
当我单击关闭按钮时,它正在重定向到个人资料页面。但它进入onclose 事件部分,它不应该像returns false 那样刷新页面,而是重定向到个人资料页面。
alertify.alert().setting({
'title': 'Message',
'label': 'Ok',
'message': 'You have not yet enabled Appointment on your profile?',
'onok': function () {
document.location.href = "/profile";
},
'onclose':function(e){
return false;//It should stop redirecting on profile page
}
}).show();
错误:当我点击Ok 或Close(X) 时,两个事件都在触发。
谢谢。
【问题讨论】:
标签: javascript alertify alertifyjs