From 3f876fec80fb7b819bcdd71833a9236d3182fd7b Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 29 Jan 2014 14:29:45 -0500 Subject: [PATCH] added ajaxify.start and ajaxify.end client-side hooks --- public/src/ajaxify.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 0b1410a905..e314ffb072 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -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;