当屏幕上弹出警报/确认框并且我按下设备的后退按钮时,弹出的警报/确认框正在关闭(不触发任何事件)。我怎样才能避免这种情况?
下面是调用代码:
**var buttons = [
{
text : Messages.LBL_OK,
handler : doLogout
}
];
showSuccess(Messages.ALERT_FILING_CONFIRMATION,buttons);**
function showSuccess(text,buttons){
showDialog(Messages.LBL_CMN_DOALOG_SUCCESS_TITLE, text, buttons);
}
function showDialog(title,text,buttons){
if(title == null || title == undefined){
title = Messages.LBL_CMN_DOALOG_TITLE;
}
if(buttons == null || buttons == undefined){
buttons = [
{
text : Messages.LBL_OK,
handler : defaultOK
}
];
}
WL.SimpleDialog.show(title,text,buttons);
}