diff options
author | Cyrill von Wattenwyl <cvw@adfinis.com> | 2014-09-02 11:20:52 +0200 |
---|---|---|
committer | Cyrill von Wattenwyl <cvw@adfinis.com> | 2014-09-02 11:20:52 +0200 |
commit | 11a40dd1fef6c5b78b054617caba4325f95ee386 (patch) | |
tree | de2e1d7efd6423ef4d1256dd5c90a972ad172719 /plugins/legacy_browser/js/iehacks.js | |
parent | 187fd666aa2f32dedfe544d69b7cb213698197f2 (diff) | |
parent | ba084313bfc9c7a5a83e0611fe4376543cc1653d (diff) |
Merge branch 'master' of https://github.com/roundcube/roundcubemail
Conflicts:
plugins/password/config.inc.php.dist
Diffstat (limited to 'plugins/legacy_browser/js/iehacks.js')
-rw-r--r-- | plugins/legacy_browser/js/iehacks.js | 10 |
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 + '"]'); +}; |