diff options
| author | mikel <mikel@pcl2> | 2012-02-15 10:46:14 +0100 |
|---|---|---|
| committer | mikel <mikel@pcl2> | 2012-02-15 10:46:14 +0100 |
| commit | 79f4e01eaaabdea0ea784d52db8e05e984ad5a4d (patch) | |
| tree | ffb193234842be792d642805ee3fabb5d249e942 /addons/web_mobile | |
| parent | 112070a58f174eedfca08a046423989e7bca3b0f (diff) | |
| parent | 99f01e1df25fb468828a0436e0bc7c03bcf07394 (diff) | |
Suggested fix
bzr revid: mikel@pcl2-20120215094614-uzbqxiuemq6iu3f9
Diffstat (limited to 'addons/web_mobile')
| -rwxr-xr-x | addons/web_mobile/static/src/web_mobile.html | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/addons/web_mobile/static/src/web_mobile.html b/addons/web_mobile/static/src/web_mobile.html index f3aab5eb4eb..32c340a9604 100755 --- a/addons/web_mobile/static/src/web_mobile.html +++ b/addons/web_mobile/static/src/web_mobile.html @@ -50,10 +50,7 @@ <script type="text/javascript">
var QWeb;
$(function() {
- if(
- document.URL!="http://"+window.location.host+"/web_mobile/static/src/web_mobile.html" &&
- document.URL!="https://"+window.location.host+"/web_mobile/static/src/web_mobile.html"
- ){
+ if(window.location.pathname!="/web_mobile/static/src/web_mobile.html"){
window.location.replace('/mobile');
}
var oe = openerp.init();
|
