add loaded event for site scripts

This commit is contained in:
j 2015-03-19 14:09:47 +00:00
parent 0fadccfe35
commit 0e187aa24c

View file

@ -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);
}