diff --git a/addons/web_mobile/static/src/js/chrome_mobile.js b/addons/web_mobile/static/src/js/chrome_mobile.js
index 4160ad57f1c..be15d107668 100644
--- a/addons/web_mobile/static/src/js/chrome_mobile.js
+++ b/addons/web_mobile/static/src/js/chrome_mobile.js
@@ -118,6 +118,15 @@ openerp.web_mobile.Shortcuts = openerp.base.Widget.extend({
this.rpc('/base/session/sc_list',{} ,function(res){
self.$element.html(QWeb.render("Shortcuts", {'sc' : res}))
self.$element.find('#content').find("a").click(self.on_clicked);
+ self.$element.find("#header").find('#application').click(function(){
+ if(!$('#oe_menu').html().length){
+ this.menu = new openerp.web_mobile.Menu(self, "oe_menu");
+ this.menu.start();
+ }
+ else{
+ self.$element.find("#header").find('#application').attr('href','#oe_menu');
+ }
+ });
self.$element.find("#footer").find('#preference').click(function(){
if(!$('#oe_options').html().length){
this.options = new openerp.web_mobile.Options(self, "oe_options");
@@ -207,6 +216,15 @@ openerp.web_mobile.Secondary = openerp.base.Widget.extend({
this.$element.html(QWeb.render("Menu.secondary", v));
this.$element.find("#header").find("h1").html(this.data.name);
this.$element.add(this.$secondary_menu).find('#content').find("a").click(this.on_menu_click);
+ this.$element.find("#header").find('#application').click(function(){
+ if(!$('#oe_menu').html().length){
+ this.menu = new openerp.web_mobile.Menu(self, "oe_menu");
+ this.menu.start();
+ }
+ else{
+ self.$element.find("#header").find('#application').attr('href','#oe_menu');
+ }
+ });
this.$element.find("#footer").find('#shrotcuts').click(function(){
if(!$('#oe_shortcuts').html().length){
this.shortcuts = new openerp.web_mobile.Shortcuts(self, "oe_shortcuts");
@@ -245,6 +263,15 @@ openerp.web_mobile.Options = openerp.base.Widget.extend({
start: function() {
var self = this;
this.$element.html(QWeb.render("Options", this));
+ this.$element.find("#header").find('#application').click(function(){
+ if(!$('#oe_menu').html().length){
+ this.menu = new openerp.web_mobile.Menu(self, "oe_menu");
+ this.menu.start();
+ }
+ else{
+ self.$element.find("#header").find('#application').attr('href','#oe_menu');
+ }
+ });
this.$element.find("#footer").find('#shrotcuts').click(function(){
if(!$('#oe_shortcuts').html().length){
this.shortcuts = new openerp.web_mobile.Shortcuts(self, "oe_shortcuts");
diff --git a/addons/web_mobile/static/src/js/list_mobile.js b/addons/web_mobile/static/src/js/list_mobile.js
index 9bb630d6a79..65e96be77a8 100644
--- a/addons/web_mobile/static/src/js/list_mobile.js
+++ b/addons/web_mobile/static/src/js/list_mobile.js
@@ -22,12 +22,20 @@ openerp.web_mobile.ListView = openerp.base.Widget.extend({
},
on_search_data: function(ev){
var self = this;
-
var dataset = new openerp.base.DataSetStatic(this, this.action.res_model, this.action.context);
dataset.name_search('', [], 'ilike',false ,function(result){
self.$element.html(QWeb.render("ListView", {'records' : result}));
self.$element.find("#header").find('h1').html(self.action.name);
self.$element.find("a#list-id").click(self.on_list_click);
+ self.$element.find("#header").find('#application').click(function(){
+ if(!$('#oe_menu').html().length){
+ this.menu = new openerp.web_mobile.Menu(self, "oe_menu");
+ this.menu.start();
+ }
+ else{
+ self.$element.find("#header").find('#application').attr('href','#oe_menu');
+ }
+ });
self.$element.find("#footer").find('#shrotcuts').click(function(){
this.shortcuts = new openerp.web_mobile.Shortcuts(self, "oe_shortcuts");
this.shortcuts.start();
@@ -36,7 +44,6 @@ openerp.web_mobile.ListView = openerp.base.Widget.extend({
this.options = new openerp.web_mobile.Options(self, "oe_options");
this.options.start();
});
-
$.mobile.changePage($("#oe_list"), "slide", true, true);
});
},
diff --git a/addons/web_mobile/static/src/xml/web_mobile.xml b/addons/web_mobile/static/src/xml/web_mobile.xml
index 5f5fe6daf6b..a9b606f1f84 100644
--- a/addons/web_mobile/static/src/xml/web_mobile.xml
+++ b/addons/web_mobile/static/src/xml/web_mobile.xml
@@ -5,7 +5,6 @@
-
@@ -43,134 +42,105 @@
-
-
-
-
-
-
-
-
-
Footer
+
-
-
OpenERP
-
+
-
- -
- Shortcuts
-
- -
-
-
-
-
-
+
-
OpenERP
-
+
Applications
-