summaryrefslogtreecommitdiff
path: root/plugins/legacy_browser/js/iehacks.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-06-12 19:18:07 +0200
committerAleksander Machniak <alec@alec.pl>2014-06-12 19:18:07 +0200
commita41aaf3352fe0d69f662132d8e70885993ed4d9a (patch)
treee10e0e2e52bd7a3436302f84d8acb70ca859d2b9 /plugins/legacy_browser/js/iehacks.js
parent3286c82deb6dfecd9428b30965208a71bd07607c (diff)
Move some code to legacy_browser plugin
Diffstat (limited to 'plugins/legacy_browser/js/iehacks.js')
-rw-r--r--plugins/legacy_browser/js/iehacks.js10
1 files changed, 10 insertions, 0 deletions
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', '<iframe name="' + name + '"'
+ + ' src="program/resources/blank.gif" style="width:0; height:0; visibility:hidden"></iframe>');
+
+ return $('iframe[name="' + name + '"]');
+};