update indiancinema home screen
This commit is contained in:
parent
368d83f3b6
commit
91e9d85d58
1 changed files with 9 additions and 13 deletions
|
@ -670,7 +670,6 @@ pandora.ui.home = function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
that.fadeInScreen = function() {
|
that.fadeInScreen = function() {
|
||||||
// $box.css({marginTop: '80px'});
|
|
||||||
that.appendTo(Ox.UI.$body).animate({opacity: 1}, 500, function() {
|
that.appendTo(Ox.UI.$body).animate({opacity: 1}, 500, function() {
|
||||||
that.find('*').animate({opacity: 1}, 250, function() {
|
that.find('*').animate({opacity: 1}, 250, function() {
|
||||||
$findInput.focusInput(true);
|
$findInput.focusInput(true);
|
||||||
|
@ -691,21 +690,18 @@ pandora.ui.home = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
that.showScreen = function(callback) {
|
that.showScreen = function(callback) {
|
||||||
|
var count = 0, $elements = that.find('*');
|
||||||
|
$box.css({top: window.innerHeight / 2 - 40 + 'px'});
|
||||||
that.css({opacity: 1}).appendTo(Ox.UI.$body);
|
that.css({opacity: 1}).appendTo(Ox.UI.$body);
|
||||||
// $box.css({marginTop: '80px'});
|
|
||||||
that.find('*').css({opacity: 1});
|
|
||||||
$findInput.focusInput(true);
|
$findInput.focusInput(true);
|
||||||
|
$box.animate({top: '80px'}, 500, function() {
|
||||||
|
$elements.animate({opacity: 1}, 250, function() {
|
||||||
|
if (++count == $elements.length) {
|
||||||
showFeatures();
|
showFeatures();
|
||||||
/*
|
|
||||||
$box.animate({marginTop: '80px'}, 500);
|
|
||||||
setTimeout(function() {
|
|
||||||
that.find('*').animate({opacity: 1}, 250, function() {
|
|
||||||
$findInput.focusInput(true);
|
|
||||||
showFeatures();
|
|
||||||
});
|
|
||||||
}, 250);
|
|
||||||
*/
|
|
||||||
callback && callback();
|
callback && callback();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
return that;
|
return that;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue