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

@ -20,16 +20,16 @@ pandora.ui.appPanel = function() {
// fixme: move animation into Ox.App
var animate = $('.OxScreen').length == 0;
Ox.Log('', 'ANIMATE?', animate)
animate && pandora.$ui.body.css({opacity: 0});
that.appendTo(pandora.$ui.body);
animate && pandora.$ui.body.animate({opacity: 1}, 1000);
animate && Ox.$body.css({opacity: 0});
that.appendTo(Ox.$body);
animate && Ox.$body.animate({opacity: 1}, 1000);
return that;
};
that.reload = function() {
Ox.Request.cancel();
Ox.Request.clearCache();
pandora.$ui.appPanel.remove();
pandora.$ui.appPanel = pandora.ui.appPanel().appendTo(pandora.$ui.body);
pandora.$ui.appPanel = pandora.ui.appPanel().appendTo(Ox.$body);
return that;
};
that.bindEvent({