added ajaxify.start and ajaxify.end client-side hooks

v1.18.x
Julian Lam 11 years ago
parent 024cfc17c5
commit 3f876fec80

@ -35,7 +35,8 @@ var ajaxify = {};
// "quiet": If set to true, will not call pushState
app.enterRoom('global');
$('body').trigger('action:ajaxifying', {url: url});
$('body').trigger('action:ajaxify.start', { url: url });
$('body').trigger('action:ajaxifying', {url: url}); // Deprecated as of v0.4.0
if ($('#content').hasClass('ajaxifying')) {
templates.cancelRequest();
@ -118,7 +119,7 @@ var ajaxify = {};
}
app.refreshTitle(url);
$('body').trigger('action:ajaxify.end', { url: url });
}, url);
return true;

Loading…
Cancel
Save