fixed #698 - ajaxify.go will now cancel any active API requests when it is called

This commit is contained in:
Julian Lam
2014-01-08 14:53:32 -05:00
parent 67f8af7e3e
commit 127261100e
2 changed files with 14 additions and 7 deletions

View File

@@ -49,9 +49,9 @@ var ajaxify = {};
// end
if ($('#content').hasClass('ajaxifying')) {
return true;
templates.cancelRequest();
}
// Remove trailing slash
url = url.replace(/\/$/, "");