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

@@ -31,7 +31,7 @@ define('forum/topic', [
$(window).off('keydown', onKeyDown);
}
if (!data.url.startsWith('topic/')) {
if (data.url && !data.url.startsWith('topic/')) {
require(['search'], function(search) {
if (search.topicDOM.active) {
search.topicDOM.end();