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

The removeDesktop function does not work correctly when closing the browser tab (FF4 or above)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.0.10
    • None
    • ZK Client Engine
    • Security Level: Jimmy

      When closing the browser tab, the javascript code here won't send Ajax request to server and it happens in FF4 and the above version. But if we set async parameter to false , it works in Firefox.

      au.js
      
      _rmDesktop: function (dt, dummy) {
        jq.ajax(zk.$default({
         url: zk.ajaxURI(null, {desktop:dt,au:true}),
         data: {dtid: dt.id, cmd_0: dummy ? "dummy": "rmDesktop", opt_0: "i"},
         beforeSend: function (xhr) {
          if (zk.pfmeter) zAu._pfsend(dt, xhr, true);
         },
         async: !zk.safari    /*here*/
        }, zAu.ajaxSettings), true);
       },
      

            Jenkins Jenkins
            matthewgo matthewgo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 12 minutes
                12m