当我单击关闭按钮时,它正在重定向到个人资料页面。但它进入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)
两个事件都在触发时。
谢谢。