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

after redirect to another page, the au is disabled

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 7.0.6.1
    • 7.0.6, 6.5.8.1
    • ZK Client Engine
    • Security Level: Jean

    Description

      clicking the "redirect"-button opens a new browser tab (OK expected)
      in the old tab the ZK client engine stops working

      <zk>
      	<button label="redirect stops client engine" onClick='Executions.getCurrent().sendRedirect("whatever", "_blank");'/>
      	<button label="test AU" onClick='Clients.log("au working")'/>
      </zk>
      

      Patched for previous version

      <script><![CDATA[
      zk.afterLoad(function() {
          zAu.cmd0.redirect = function (url, target) {
      		try {
      			zUtl.go(url, {target: target});
      			// Bug ZK-2844
      			if (!target)
      				zAu.disabledRequest = true; // Bug ZK-2616
      		} catch (ex) {
      			if (!zk.confirmClose) throw ex;
      		}
      	};                              
      });//afterLoad
      ]]></script>		
      

      Attachments

        Issue Links

          Activity

            People

              jumperchen jumperchen
              JoeHuang JoeHuang
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour
                  1h