From 0e187aa24cdf5bdc3a8bc416e4f0467a286d4d51 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 19 Mar 2015 14:09:47 +0000 Subject: [PATCH] add loaded event for site scripts --- static/js/pandora.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/static/js/pandora.js b/static/js/pandora.js index c75a88426..a5c6df323 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -432,6 +432,8 @@ appPanel }); Ox.Fullscreen.bind('exit', pandora.UI.set); pandora.site.sectionButtonsWidth = pandora.$ui.sectionButtons.width() + 8; + // allow site scripts to run after pandora is loaded + pandora.triggerEvent('loaded') loadUserScript && pandora.loadUserScript(); document.removeEventListener && document.removeEventListener('keydown', onKeydown); }