From e18660c3308e7fb17590e72e6b5e9aadc8ca0517 Mon Sep 17 00:00:00 2001 From: Joren Van Onder Date: Fri, 8 Apr 2016 13:46:27 +0200 Subject: [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 --- addons/web/static/src/js/framework/session.js | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web/static/src/js/framework/session.js') 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) { -- cgit v1.2.3