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.57j app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.57i app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.57h app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.57g app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.57f app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.57e app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.57d app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.57c app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.57b app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.57a app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.57 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.56 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.55 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.54 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.53 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.52 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.51 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.50 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.49 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-2.0.48 app/assets/javascripts/hallway_wrapper/after.js