[IMP] On refresh login page load.

bzr revid: bth@tinyerp.com-20110928051700-rb2x9ufn2xcwn8pk
This commit is contained in:
Bhumi Thakkar (Open ERP)
2011-09-28 10:47:00 +05:30
parent 6d14f142e6
commit 7c9a8945f4
@@ -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", {}));