summaryrefslogtreecommitdiff
path: root/addons/web_mobile/static/src/js/chrome_mobile.js
diff options
context:
space:
mode:
authorJiten (OpenERP) <jra@tinyerp.com>2011-09-22 18:04:40 +0530
committerJiten (OpenERP) <jra@tinyerp.com>2011-09-22 18:04:40 +0530
commitb46e84d47abfd7eebc8babd82239c85dbbbd6515 (patch)
tree8e0caf5a22f966262af188787231293315c59a30 /addons/web_mobile/static/src/js/chrome_mobile.js
parentdbe1e67f9274e58a1a4eec4295ade68558ab40a2 (diff)
[FIX] Improved slide transition on change page.
bzr revid: jra@tinyerp.com-20110922123440-93ddlany5czr2sur
Diffstat (limited to 'addons/web_mobile/static/src/js/chrome_mobile.js')
-rw-r--r--addons/web_mobile/static/src/js/chrome_mobile.js32
1 files changed, 16 insertions, 16 deletions
diff --git a/addons/web_mobile/static/src/js/chrome_mobile.js b/addons/web_mobile/static/src/js/chrome_mobile.js
index 231ba37f366..48187e2e48d 100644
--- a/addons/web_mobile/static/src/js/chrome_mobile.js
+++ b/addons/web_mobile/static/src/js/chrome_mobile.js
@@ -119,7 +119,7 @@ openerp.web_mobile.Shortcuts = openerp.web.Widget.extend({
self.$element.find("[data-role=header]").find('h1').html('Favourite');
self.$element.find("[data-role=header]").find('#home').click(function(){
- $.mobile.changePage("#oe_menu", "slide", true, true);
+ $.mobile.changePage("#oe_menu", "slide", false, true);
});
self.$element.find('#content').find("a").click(self.on_clicked);
self.$element.find("[data-role=footer]").find('#preference').click(function(){
@@ -128,10 +128,10 @@ openerp.web_mobile.Shortcuts = openerp.web.Widget.extend({
this.options.start();
}
else{
- $.mobile.changePage("#oe_options", "slide", true, true);
+ $.mobile.changePage("#oe_options", "slide", false, true);
}
});
- $.mobile.changePage("#oe_shortcuts", "slide", true, true);
+ $.mobile.changePage("#oe_shortcuts", "slide", false, true);
});
},
on_clicked: function(ev) {
@@ -147,7 +147,7 @@ openerp.web_mobile.Shortcuts = openerp.web.Widget.extend({
this.listview = new openerp.web_mobile.ListView(self, "oe_list_"+res_id, res_id);
this.listview.start();
}else{
- $.mobile.changePage('#oe_list_'+res_id, "slide", true, true);
+ $.mobile.changePage('#oe_list_'+res_id, "slide", false, true);
}
ev.preventDefault();
ev.stopPropagation();
@@ -181,7 +181,7 @@ openerp.web_mobile.Menu = openerp.web.Widget.extend({
this.shortcuts.start();
}
else{
- $.mobile.changePage($("#oe_shortcuts"), "slide", true, true);
+ $.mobile.changePage($("#oe_shortcuts"), "slide", false, true);
}
});
this.$element.find("[data-role=footer]").find('#preference').click(function(){
@@ -190,11 +190,11 @@ openerp.web_mobile.Menu = openerp.web.Widget.extend({
this.options.start();
}
else{
- $.mobile.changePage("#oe_options", "slide", true, true);
+ $.mobile.changePage("#oe_options", "slide", false, true);
}
});
this.$element.add(this.$secondary_menu).find("#content").find('a').click(this.on_menu_click);
- $.mobile.changePage("#oe_menu", "slide", true, true);
+ $.mobile.changePage("#oe_menu", "slide", false, true);
},
on_menu_click: function(ev, id) {
var $menu = $(ev.currentTarget);
@@ -215,7 +215,7 @@ openerp.web_mobile.Menu = openerp.web.Widget.extend({
this.secondary = new openerp.web_mobile.Secondary(this, "oe_sec_menu_"+id, this.children);
this.secondary.start();
}else{
- $.mobile.changePage('#oe_sec_menu_'+id, "slide", true, true);
+ $.mobile.changePage('#oe_sec_menu_'+id, "slide", false, true);
}
}
});
@@ -238,7 +238,7 @@ openerp.web_mobile.Secondary = openerp.web.Widget.extend({
this.shortcuts.start();
}
else{
- $.mobile.changePage("#oe_shortcuts", "slide", true, true);
+ $.mobile.changePage("#oe_shortcuts", "slide", false, true);
}
});
this.$element.find("[data-role=footer]").find('#preference').click(function(){
@@ -247,14 +247,14 @@ openerp.web_mobile.Secondary = openerp.web.Widget.extend({
this.options.start();
}
else{
- $.mobile.changePage("#oe_options", "slide", true, true);
+ $.mobile.changePage("#oe_options", "slide", false, true);
}
});
this.$element.find("[data-role=header]").find('#home').click(function(){
- $.mobile.changePage("#oe_menu", "slide", true, true);
+ $.mobile.changePage("#oe_menu", "slide", false, true);
});
- $.mobile.changePage("#"+this.element_id, "slide", true, true);
+ $.mobile.changePage("#"+this.element_id, "slide", false, true);
},
on_menu_click: function(ev, id) {
var $menu = $(ev.currentTarget);
@@ -267,7 +267,7 @@ openerp.web_mobile.Secondary = openerp.web.Widget.extend({
this.listview = new openerp.web_mobile.ListView(this, "oe_list_"+id, id);
this.listview.start();
}else{
- $.mobile.changePage('#oe_list_'+id, "slide", true, true);
+ $.mobile.changePage('#oe_list_'+id, "slide", false, true);
}
jQuery("#oe_header").find("h1").html($menu.data('name'));
}
@@ -285,17 +285,17 @@ openerp.web_mobile.Options = openerp.web.Widget.extend({
this.shortcuts.start();
}
else{
- $.mobile.changePage("#oe_shortcuts", "slide", true, true);
+ $.mobile.changePage("#oe_shortcuts", "slide", false, true);
}
});
this.$element.find("[data-role=header]").find('#home').click(function(){
- $.mobile.changePage("#oe_menu", "slide", true, true);
+ $.mobile.changePage("#oe_menu", "slide", false, true);
});
this.$element.find("[data-role=content]").find('a').click(function(){
$('#oe_login').empty();
window.location.replace('/mobile');
});
- $.mobile.changePage("#oe_options", "slide", true, true);
+ $.mobile.changePage("#oe_options", "slide", false, true);
}
});