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

after redirect to another page, the au is disabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 7.0.6, 6.5.8.1
    • Fix Version/s: 7.0.6.1
    • Component/s: ZK Client Engine
    • Security Level: Jean
    • Labels:

      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

              Assignee:
              jumperchen jumperchen
              Reporter:
              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