From a41aaf3352fe0d69f662132d8e70885993ed4d9a Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 12 Jun 2014 19:18:07 +0200 Subject: Move some code to legacy_browser plugin --- plugins/legacy_browser/js/iehacks.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'plugins/legacy_browser/js/iehacks.js') diff --git a/plugins/legacy_browser/js/iehacks.js b/plugins/legacy_browser/js/iehacks.js index 91dc6d63a..8f88e6f57 100644 --- a/plugins/legacy_browser/js/iehacks.js +++ b/plugins/legacy_browser/js/iehacks.js @@ -96,3 +96,13 @@ rcube_webmail.prototype.get_input_selection = function(obj) return {start: start, end: end, text: normalizedValue.substr(start, end-start)}; }; + +// For IE<9 we have to do it this way +// otherwise the form will be posted to a new window +rcube_webmail.prototype.async_upload_form_frame = function(name) +{ + document.body.insertAdjacentHTML('BeforeEnd', ''); + + return $('iframe[name="' + name + '"]'); +}; -- cgit v1.2.3