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.81k app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.81j app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.81i app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.81h app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.81g app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.81f app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-0 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.81 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.795b app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.794 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.793 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.791 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.79 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.78 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.76 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.75 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.74 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.73 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.72 app/assets/javascripts/hallway_wrapper/after.js
zuora_connect-1.7.711 app/assets/javascripts/hallway_wrapper/after.js