Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2505

page with confirmClose don't rise rmDesktop event

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Blocker Blocker
    • 7.0.5
    • 7.0.3
    • ZK Client Engine
    • 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

      { var dts = zk.Desktop.all; for (var dtid in dts) zAu._rmDesktop(dts[dtid], !bRmDesktop); }

      catch (e) {
      }
      }
      });

            Unassigned Unassigned
            hiepgau hiepgau
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: