Skip to content

Commit

Permalink
Added slide transition.
Browse files Browse the repository at this point in the history
  • Loading branch information
lsean committed Feb 22, 2012
1 parent ddcbfd2 commit 0381941
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion client/default/app/views/Camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ app.views.Camera = Ext.extend(Ext.Panel, {
text: 'Back',
ui: 'back',
handler: function() {
app.views.viewport.setActiveItem(app.views.home, {type: 'slide', direction: 'left'});
app.views.viewport.setActiveItem(app.views.home, {type: 'slide', direction: 'right'});
}
}
]
Expand Down
8 changes: 4 additions & 4 deletions client/default/app/views/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ app.views.Home = Ext.extend(Ext.Panel, {
width: 100,
height: 100,
handler: function() {
app.views.viewport.setActiveItem(app.views.map, {type: 'slide', direction: 'right'});
app.views.viewport.setActiveItem(app.views.map, {type: 'slide', direction: 'left'});
}
},
{
Expand All @@ -46,7 +46,7 @@ app.views.Home = Ext.extend(Ext.Panel, {
width: 100,
height: 100,
handler: function() {
app.views.viewport.setActiveItem(app.views.twitter, {type: 'slide', direction: 'right'});
app.views.viewport.setActiveItem(app.views.twitter, {type: 'slide', direction: 'left'});
}
},
{
Expand Down Expand Up @@ -78,7 +78,7 @@ app.views.Home = Ext.extend(Ext.Panel, {
width: 100,
height: 100,
handler: function() {
app.views.viewport.setActiveItem(app.views.payment, {type: 'slide', direction: 'right'});
app.views.viewport.setActiveItem(app.views.payment, {type: 'slide', direction: 'left'});
}
},
{
Expand Down Expand Up @@ -140,7 +140,7 @@ app.views.Home = Ext.extend(Ext.Panel, {
width: 100,
height: 100,
handler: function() {
app.views.viewport.setActiveItem(app.views.settings, {type: 'slide', direction: 'right'});
app.views.viewport.setActiveItem(app.views.settings, {type: 'slide', direction: 'left'});
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion client/default/app/views/Map.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ app.views.MapView = Ext.extend(Ext.Panel, {
ui: 'back',
hidden: app.hideBack || false,
handler: function() {
app.views.viewport.setActiveItem(app.views.home, {type: 'slide', direction: 'left'});
app.views.viewport.setActiveItem(app.views.home, {type: 'slide', direction: 'right'});
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion client/default/app/views/Payment.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ app.views.Payment = Ext.extend(Ext.Panel, {
ui: 'back',
hidden: app.hideBack || false,
handler: function() {
app.views.viewport.setActiveItem(app.views.home, {type: 'slide', direction: 'left'});
app.views.viewport.setActiveItem(app.views.home, {type: 'slide', direction: 'right'});
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion client/default/app/views/Settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ app.views.Settings = Ext.extend(Ext.Panel, {
ui: 'back',
hidden: app.hideBack || false,
handler: function() {
app.views.viewport.setActiveItem(app.views.home, {type: 'slide', direction: 'left'});
app.views.viewport.setActiveItem(app.views.home, {type: 'slide', direction: 'right'});
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion client/default/app/views/Twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ app.views.Twitter = Ext.extend(Ext.Panel, {
ui: 'back',
hidden: app.hideBack || false,
handler: function() {
app.views.viewport.setActiveItem(app.views.home, {type: 'slide', direction: 'left'});
app.views.viewport.setActiveItem(app.views.home, {type: 'slide', direction: 'right'});
}
}
]
Expand Down

0 comments on commit 0381941

Please sign in to comment.