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-2.0.5p app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5o app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5n app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5m app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5l app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5k app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5j app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5i app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5h app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5f app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5e app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5d app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5c app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5b app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5a app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.5 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.4 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.3n app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.3m app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.3l app/assets/javascripts/hallway_wrapper/after.js