[FIX] web: only open reports in new window on iOS devices

bzr revid: chs@openerp.com-20130702093932-r0nl3b02fludgu9s
This commit is contained in:
Christophe Simonis 2013-07-02 11:39:32 +02:00
parent b732bb34fe
commit d5b4996aab
1 changed files with 1 additions and 1 deletions

View File

@ -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();