From 6a50715f99510d35f0b60721fcb5f78c2fed0874 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 21 Jan 2016 10:15:34 +0000 Subject: [PATCH] Do not take toolbar's preferences into account for mobile theme --- etemplate/js/et2_widget_toolbar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_toolbar.js b/etemplate/js/et2_widget_toolbar.js index da63db107f..30133ed31b 100644 --- a/etemplate/js/et2_widget_toolbar.js +++ b/etemplate/js/et2_widget_toolbar.js @@ -158,7 +158,7 @@ var et2_toolbar = et2_DOMWidget.extend([et2_IInput], this.actionbox.append('
'); var that = this; - var pref = egw.preference(this.dom_id,this.egw().getAppName()); + var pref = (!egwIsMobile())? egw.preference(this.dom_id,this.egw().getAppName()): undefined; if (pref && !jQuery.isArray(pref)) this.preference = pref; //Set the default actions for the first time @@ -455,6 +455,7 @@ var et2_toolbar = et2_DOMWidget.extend([et2_IInput], set_prefered: function(_action,_state) { this.preference[_action] = _state; + if (egwIsMobile()) return; egw.set_preference(this.egw().getAppName(),this.dom_id,this.preference); },