summaryrefslogtreecommitdiff
path: root/addons/web_mobile/static/src/js/form_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/form_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/form_mobile.js')
-rw-r--r--addons/web_mobile/static/src/js/form_mobile.js34
1 files changed, 17 insertions, 17 deletions
diff --git a/addons/web_mobile/static/src/js/form_mobile.js b/addons/web_mobile/static/src/js/form_mobile.js
index b9879ab1665..6bc209d831f 100644
--- a/addons/web_mobile/static/src/js/form_mobile.js
+++ b/addons/web_mobile/static/src/js/form_mobile.js
@@ -49,7 +49,7 @@ openerp.web_mobile.FormView = openerp.web.Widget.extend({
self.$element.find("[data-role=header]").find('h1').html(self.head_title);
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("[data-role=footer]").find('#shrotcuts').click(function(){
if(!$('#oe_shortcuts').html().length){
@@ -57,7 +57,7 @@ openerp.web_mobile.FormView = openerp.web.Widget.extend({
this.shortcuts.start();
}
else{
- $.mobile.changePage("#oe_shortcuts", "slide", true, true);
+ $.mobile.changePage("#oe_shortcuts", "slide", false, true);
}
});
self.$element.find("[data-role=footer]").find('#preference').click(function(){
@@ -66,7 +66,7 @@ openerp.web_mobile.FormView = openerp.web.Widget.extend({
this.options.start();
}
else{
- $.mobile.changePage("#oe_options", "slide", true, true);
+ $.mobile.changePage("#oe_options", "slide", false, true);
}
});
self.$element.find('#formbutton').click(function(){
@@ -79,7 +79,7 @@ openerp.web_mobile.FormView = openerp.web.Widget.extend({
this.formview = new openerp.web_mobile.FormView(self, "oe_form_"+selected_id+select_model, selected_id, '', head, select_model, false);
this.formview.start();
}else{
- $.mobile.changePage('#oe_form_'+selected_id+select_model, "slide", true, true);
+ $.mobile.changePage('#oe_form_'+selected_id+select_model, "slide", false, true);
}
}
});
@@ -115,7 +115,7 @@ openerp.web_mobile.FormView = openerp.web.Widget.extend({
this.formview = new openerp.web_mobile.FormView(self, "oe_form_"+selected_id+select_model, selected_id, '', head, select_model, false);
this.formview.start();
}else{
- $.mobile.changePage('#oe_form_'+selected_id+select_model, "slide", true, true);
+ $.mobile.changePage('#oe_form_'+selected_id+select_model, "slide", false, true);
}
}
});
@@ -150,7 +150,7 @@ openerp.web_mobile.FormView = openerp.web.Widget.extend({
$('[id^="oe_list_'+relational+'_'+self.element_id+'"]').html(QWeb.render("ListView", {'records' : res}));
$('[id^="oe_list_'+relational+'_'+self.element_id+'"]').find("[data-role=header]").find('h1').html(head);
$('[id^="oe_list_'+relational+'_'+self.element_id+'"]').find("[data-role=header]").find('#home').click(function(){
- $.mobile.changePage("#oe_menu", "slide", true, true);
+ $.mobile.changePage("#oe_menu", "slide", false, true);
});
$('[id^="oe_list_'+relational+'_'+self.element_id+'"]').find("[data-role=footer]").find('#shrotcuts').click(function(){
if(!$('#oe_shortcuts').html().length){
@@ -158,7 +158,7 @@ openerp.web_mobile.FormView = openerp.web.Widget.extend({
this.shortcuts.start();
}
else{
- $.mobile.changePage("#oe_shortcuts", "slide", true, true);
+ $.mobile.changePage("#oe_shortcuts", "slide", false, true);
}
});
$('[id^="oe_list_'+relational+'_'+self.element_id+'"]').find("[data-role=footer]").find('#preference').click(function(){
@@ -167,7 +167,7 @@ openerp.web_mobile.FormView = openerp.web.Widget.extend({
this.options.start();
}
else{
- $.mobile.changePage("#oe_options", "slide", true, true);
+ $.mobile.changePage("#oe_options", "slide", false, true);
}
});
$('[id^="oe_list_'+relational+'_'+self.element_id+'"]').find("a#list-id").click(function(ev){
@@ -203,7 +203,7 @@ openerp.web_mobile.FormView = openerp.web.Widget.extend({
$('[id^="oe_form_'+listid+result.fields[relational].relation+'"]').find("[data-role=header]").find('h1').html(head_title);
$('[id^="oe_form_'+listid+result.fields[relational].relation+'"]').find("[data-role=header]").find('#home').click(function(){
- $.mobile.changePage("#oe_menu", "slide", true, true);
+ $.mobile.changePage("#oe_menu", "slide", false, true);
});
$('[id^="oe_form_'+listid+result.fields[relational].relation+'"]').find("[data-role=footer]").find('#shrotcuts').click(function(){
if(!$('#oe_shortcuts').html().length){
@@ -211,7 +211,7 @@ openerp.web_mobile.FormView = openerp.web.Widget.extend({
this.shortcuts.start();
}
else{
- $.mobile.changePage("#oe_shortcuts", "slide", true, true);
+ $.mobile.changePage("#oe_shortcuts", "slide", false, true);
}
});
$('[id^="oe_form_'+listid+result.fields[relational].relation+'"]').find("[data-role=footer]").find('#preference').click(function(){
@@ -220,7 +220,7 @@ openerp.web_mobile.FormView = openerp.web.Widget.extend({
this.options.start();
}
else{
- $.mobile.changePage("#oe_options", "slide", true, true);
+ $.mobile.changePage("#oe_options", "slide", false, true);
}
});
$('[id^="oe_form_'+listid+result.fields[relational].relation+'"]').find('#formbutton').click(function(){
@@ -233,24 +233,24 @@ openerp.web_mobile.FormView = openerp.web.Widget.extend({
this.formview = new openerp.web_mobile.FormView(self, "oe_form_"+selected_id+select_model, selected_id, '', head, select_model, false);
this.formview.start();
}else{
- $.mobile.changePage('#oe_form_'+selected_id+select_model, "slide", true, true);
+ $.mobile.changePage('#oe_form_'+selected_id+select_model, "slide", false, true);
}
}
});
- $.mobile.changePage('#oe_form_'+listid+result.fields[relational].relation, "slide", true, true);
+ $.mobile.changePage('#oe_form_'+listid+result.fields[relational].relation, "slide", false, true);
}else{
- $.mobile.changePage('#oe_form_'+listid+result.fields[relational].relation, "slide", true, true);
+ $.mobile.changePage('#oe_form_'+listid+result.fields[relational].relation, "slide", false, true);
}
});
});
- $.mobile.changePage("#oe_list_"+relational+"_"+self.element_id, "slide", true, true);
+ $.mobile.changePage("#oe_list_"+relational+"_"+self.element_id, "slide", false, true);
}else{
- $.mobile.changePage("#oe_list_"+relational+"_"+self.element_id, "slide", true, true);
+ $.mobile.changePage("#oe_list_"+relational+"_"+self.element_id, "slide", false, true);
}
});
}
});
- $.mobile.changePage("#"+self.element_id, "slide", true, true);
+ $.mobile.changePage("#"+self.element_id, "slide", false, true);
});
});
},