[FIX] website: 'window.location.origin' is not found in IE browser thats why generated manually.

bzr revid: chm@openerp.com-20140224143828-wq1k4931lmmm8leh
This commit is contained in:
Christophe Matthieu
2014-02-24 15:38:28 +01:00
@@ -17,6 +17,9 @@
'hidden.bs.modal': 'destroy'
},
start: function () {
if (!window.location.origin) { // fix for ie9
window.location.origin = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ':' + window.location.port: '') + '/';
}
document.getElementById("mobile-viewport").src = window.location.origin + window.location.pathname + "#mobile-preview";
this.$el.modal();
},