-
Bug
-
Resolution: Duplicate
-
Blocker
-
7.0.3
-
None
i test with zk 7.0.3, chrome, ubuntu 14.
create page 1 name withConfirmClose, in this page call Clients.confirmClose("message");
create page 2 name withoutConfirmClose, in this page call Clients.confirmClose(null);
make class SessionContextListener, implement DesktopCleanup and registry it as a listener to handle remove desktop event.
1. open page withConfirmClose then close (or refresh it) a dialog with message "message" display to confirm.
when user confirm, page is close or reload.
function SessionContextListener.cleanup isn't called
2. open page withoutConfirmClose then close (or refresh it) no dialog is display, page is immediately close or reload
function SessionContextListener.cleanup is called
case 1 is wrong, it must adjust to call fire remove desktop event (call SessionContextListener.cleanup) when user confirm close (reload) page.
reason: code of .unload(function (){
in file /web/js/zk/mount.js is modify.
code at version 6.5.2 is correct, higher is wrong.
.unload(function () {
zk.unloading = true;
var bRmDesktop = !zk.opera && !zk.keepDesktop;
if (bRmDesktop || zk.pfmeter) {
try
catch (e) {
}
}
});
- duplicates
-
ZK-2600 DesktopCleanup should works when Using Clients.confirmClose()
- Closed