diff options
| author | Joren Van Onder <jov@odoo.com> | 2016-04-08 13:46:27 +0200 |
|---|---|---|
| committer | Joren Van Onder <jov@odoo.com> | 2016-04-19 13:26:01 +0200 |
| commit | e18660c3308e7fb17590e72e6b5e9aadc8ca0517 (patch) | |
| tree | bfaa79c2c49e7f06707ee86835801eca454aa388 /addons/web/static/src/js/framework/session.js | |
| parent | 7c0442080295ca1add3fffcebb8014d2f0d72977 (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.js | 1 |
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) { |
