[FIX] web: only open reports in new window on iOS devices
bzr revid: chs@openerp.com-20130702093932-r0nl3b02fludgu9s
This commit is contained in:
parent
b732bb34fe
commit
d5b4996aab
|
@ -286,7 +286,7 @@ instance.web.Session = instance.web.JsonRPC.extend( /** @lends instance.web.Sess
|
|||
|
||||
// iOS devices doesn't allow iframe use the way we do it,
|
||||
// opening a new window seems the best way to workaround
|
||||
if (navigator.userAgent.match(/(iPod|iPhone|iPad)/) || true) {
|
||||
if (navigator.userAgent.match(/(iPod|iPhone|iPad)/)) {
|
||||
var params = _.extend({}, options.data || {}, {token: token});
|
||||
var url = this.url(options.url, params);
|
||||
instance.web.unblockUI();
|
||||
|
|
Loading…
Reference in New Issue