just changed the 403/404 checking logic to use regex.

v1.18.x
Andrew Darqui 11 years ago
parent b2e81b5d17
commit 4b0e915698

@ -117,7 +117,7 @@ var ajaxify = {};
if (hrefEmpty(this.href) || this.target !== '' || this.protocol === 'javascript:') if (hrefEmpty(this.href) || this.target !== '' || this.protocol === 'javascript:')
return; return;
if(window.location.pathname != '/403' && window.location.pathname != '/404') if(!window.location.pathname.match(/\/(403|404)$/g))
app.previousUrl = window.location.href; app.previousUrl = window.location.href;
if (!e.ctrlKey && e.which === 1) { if (!e.ctrlKey && e.which === 1) {

Loading…
Cancel
Save