altering ajaxify abort behaviour to look for null instead of empty string, and triggering ajaxify.end when abort occurs

This commit is contained in:
Julian Lam
2016-08-10 12:50:41 -04:00
parent 9e7d90e314
commit e019eb40c4
3 changed files with 8 additions and 5 deletions

View File

@@ -67,7 +67,8 @@ $(document).ready(function() {
url = ajaxify.start(url);
// If any listeners alter url and set it to an empty string, abort the ajaxification
if (url === '') {
if (url === null) {
$(window).trigger('action:ajaxify.end', {url: url, tpl_url: ajaxify.data.template.name, title: ajaxify.data.title});
return false;
}