Sha256: a9d9ab578bec5f6a30e918f7f1c4b72d3bc1283089bdae59dc6cf4073c9c9760

Contents?: true

Size: 420 Bytes

Versions: 176

Compression:

Stored size: 420 Bytes

Contents

window.define = previousDefine;

// This'll be our "error service" for hallway
if (isHallway()) {
  $( document ).ajaxError(function( event, jqxhr, settings, thrownError ) {
    if ( jqxhr.status === 401) {
      window.location.href = '/apps/newlogin.do?retURL=' + window.location.pathname;
    }
  });
}

function isHallway() {
  var regex = new RegExp("^/services/");
  return window.location.pathname.match(regex);
}

Version data entries

176 entries across 176 versions & 1 rubygems

Version Path
zuora_connect-1.7.710 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.71 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.70 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.69 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.68 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.67 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.66 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.65 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.64 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.63 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.62 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.61 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.60 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.59 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.58 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.57 app/assets/javascripts/hallway_wrapper/after.js