summaryrefslogtreecommitdiff
path: root/addons/web_mobile/static/src
diff options
context:
space:
mode:
authorBhumi Thakkar (Open ERP) <bth@tinyerp.com>2011-09-28 10:47:00 +0530
committerBhumi Thakkar (Open ERP) <bth@tinyerp.com>2011-09-28 10:47:00 +0530
commit7c9a8945f42d5c00fb02987043697cc2ccbfe75c (patch)
treea9cd206570a2a58ea7fa18a0a21d03d4aa41bc00 /addons/web_mobile/static/src
parent6d14f142e60db4468052e4b07e7424fe9c96fcaa (diff)
[IMP] On refresh login page load.
bzr revid: bth@tinyerp.com-20110928051700-rb2x9ufn2xcwn8pk
Diffstat (limited to 'addons/web_mobile/static/src')
-rw-r--r--addons/web_mobile/static/src/js/chrome_mobile.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web_mobile/static/src/js/chrome_mobile.js b/addons/web_mobile/static/src/js/chrome_mobile.js
index e8260739161..3427c0dcdaa 100644
--- a/addons/web_mobile/static/src/js/chrome_mobile.js
+++ b/addons/web_mobile/static/src/js/chrome_mobile.js
@@ -14,6 +14,9 @@ openerp.web_mobile.mobilewebclient = function(element_id) {
openerp.web_mobile.MobileWebClient = openerp.web.Widget.extend({
init: function(element_id) {
this._super(null, element_id);
+ if(document.URL.length>59){
+ window.location.replace('/mobile');
+ }
QWeb.add_template("xml/web_mobile.xml");
var params = {};
this.$element.html(QWeb.render("WebClient", {}));