1
0
mirror of https://github.com/moparisthebest/app-UI synced 2024-12-21 23:18:52 -05:00
This commit is contained in:
Andrew Trice 2012-04-20 11:59:44 -04:00
parent 5911f163e9
commit 932f2502e8
2 changed files with 15 additions and 16 deletions

View File

@ -61,8 +61,10 @@ body {
position:absolute;
top:12px;
left:0px;
right:0px;
left:0%;
right:0%;
margin-left:auto;
margin-right:auto;
text-align:center;
font-weight: bold;
color: #FFFFFF;

View File

@ -69,21 +69,18 @@ ViewNavigator.prototype.pushView = function( viewDescriptor ) {
ViewNavigator.prototype.popView = function() {
if ( this.history.length > 1 ) {
if (this.animating || this.history.length <= 1 )
return;
var currentViewDescriptor = this.history[ this.history.length-1];
this.history.pop();
if ( currentViewDescriptor.backCallback ) {
currentViewDescriptor.backCallback();
}
this.history.pop();
var viewDescriptor = this.history[ this.history.length-1 ];
viewDescriptor.animation = "popEffect"
this.updateView( viewDescriptor );
}
}
ViewNavigator.prototype.setHeaderPadding = function( amount ) {