mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
altering ajaxify abort behaviour to look for null instead of empty string, and triggering ajaxify.end when abort occurs
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user