diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2014-02-25 01:33:27 +0400 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2014-02-25 01:33:27 +0400 |
commit | 27c2281a25670443def2903c1b9fbfe98bff4226 (patch) | |
tree | 0e1adf6daf5641fee72b5890db36b1be16917a0c /plugins/CoreHome/javascripts/broadcast.js | |
parent | 53fec7c8fcde4c28bf0898756e4e544db22cc23b (diff) |
trigger an event on location change success which allows plugin developers to hook and parse dom to register events
Diffstat (limited to 'plugins/CoreHome/javascripts/broadcast.js')
-rw-r--r-- | plugins/CoreHome/javascripts/broadcast.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/CoreHome/javascripts/broadcast.js b/plugins/CoreHome/javascripts/broadcast.js index b18f53319a..9a4caf6f9d 100644 --- a/plugins/CoreHome/javascripts/broadcast.js +++ b/plugins/CoreHome/javascripts/broadcast.js @@ -420,6 +420,7 @@ var broadcast = { if (urlAjax == broadcast.lastUrlRequested) { $('#content').html(content).show(); + $(broadcast).trigger('locationChangeSuccess', {element: $('#content'), content: content}); piwikHelper.hideAjaxLoading(); broadcast.lastUrlRequested = null; } |