From 102f1ae23d794014014676060b447d7bdb63f57c Mon Sep 17 00:00:00 2001 From: alec Date: Tue, 3 May 2011 08:18:40 +0000 Subject: - Enable multiselection for attachments uploading in capable browsers (#1485969) git-svn-id: https://svn.roundcube.net/trunk@4723 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/CHANGELOG | 1 + roundcubemail/program/include/html.php | 2 +- roundcubemail/program/js/app.js | 27 +++++++++++---------------- roundcubemail/program/steps/mail/compose.inc | 4 ++++ 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/roundcubemail/CHANGELOG b/roundcubemail/CHANGELOG index 34c431305..73a04daad 100644 --- a/roundcubemail/CHANGELOG +++ b/roundcubemail/CHANGELOG @@ -1,6 +1,7 @@ CHANGELOG Roundcube Webmail =========================== +- Enable multiselection for attachments uploading in capable browsers (#1485969) - Add possibility to change HTML editor configuration by skin - Fix a bug where selecting too many contacts would produce too large URI request (#1487892) - Fix relative URLs handling according to a in HTML (#1487889) diff --git a/roundcubemail/program/include/html.php b/roundcubemail/program/include/html.php index 34536e4c6..8f932ce2c 100644 --- a/roundcubemail/program/include/html.php +++ b/roundcubemail/program/include/html.php @@ -271,7 +271,7 @@ class html_inputfield extends html protected $type = 'text'; protected $allowed = array('type','name','value','size','tabindex', 'autocomplete','checked','onchange','onclick','disabled','readonly', - 'spellcheck','results','maxlength','src'); + 'spellcheck','results','maxlength','src','multiple'); /** * Object constructor diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index e83f33715..3da2eca56 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -473,13 +473,13 @@ function rcube_webmail() // trigger plugin hooks this.triggerEvent('actionbefore', {props:props, action:command}); - var event_ret = this.triggerEvent('before'+command, props); - if (event_ret !== undefined) { + var ret = this.triggerEvent('before'+command, props); + if (ret !== undefined) { // abort if one the handlers returned false - if (event_ret === false) + if (ret === false) return false; else - props = event_ret; + props = ret; } // process internal command @@ -3171,16 +3171,12 @@ function rcube_webmail() if (!form) return false; - // get file input fields - var send = false; - for (var n=0; n