use Ox.$(document|body) instead of pandora.$ui.(document|body)

This commit is contained in:
j 2017-01-26 17:41:50 +01:00
commit 58999918f7
10 changed files with 27 additions and 31 deletions

View file

@ -278,17 +278,13 @@ appPanel
function initPandora(data) {
Ox.Log('', 'Ox.App load', data);
Ox.$window.on({
beforeunload: pandora.beforeUnloadWindow,
resize: pandora.resizeWindow,
unload: pandora.unloadWindow
})
Ox.extend(pandora, {
$ui: {
body: $('body'),
document: $(document),
window: $(window)
.on({
beforeunload: pandora.beforeUnloadWindow,
resize: pandora.resizeWindow,
unload: pandora.unloadWindow
})
},
$ui: {},
site: data.site,
user: data.user
});