summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework/session.js
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2016-04-08 13:46:27 +0200
committerJoren Van Onder <jov@odoo.com>2016-04-19 13:26:01 +0200
commite18660c3308e7fb17590e72e6b5e9aadc8ca0517 (patch)
treebfaa79c2c49e7f06707ee86835801eca454aa388 /addons/web/static/src/js/framework/session.js
parent7c0442080295ca1add3fffcebb8014d2f0d72977 (diff)
[FIX] web: fix iOS file downloading
e8a00bc50da435d3859118ca127d20a2eb9a0cab moved the get_file function from web.session to web.ajax. The issue is that get_file uses session.url() for iOS devices. Also, in order to prevent an infinite spinner options.complete() is called before actually opening up the new window. Although this resolves the issue it still requires the user to configure Safari to allow pop-ups, otherwise they are silently ignored. opw-672882
Diffstat (limited to 'addons/web/static/src/js/framework/session.js')
-rw-r--r--addons/web/static/src/js/framework/session.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/framework/session.js b/addons/web/static/src/js/framework/session.js
index 7eae8b20a65..e16b3767e64 100644
--- a/addons/web/static/src/js/framework/session.js
+++ b/addons/web/static/src/js/framework/session.js
@@ -271,6 +271,7 @@ var Session = core.Class.extend(mixins.EventDispatcherMixin, {
if (this.override_session){
options.data.session_id = this.session_id;
}
+ options.session = this;
ajax.get_file(options);
},
synchronized_mode: function(to_execute) {