From 188247894f6aff3a11f68bbdf94626b8bf58b852 Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Tue, 08 Apr 2014 13:11:12 -0400 Subject: [PATCH] Make multi-folder message identifiers work with folders containing commas --- program/js/app.js | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index 952c542..7f19382 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3014,7 +3014,8 @@ var icn_src, uid, i, len, rows = this.message_list ? this.message_list.rows : {}; - uids = String(uids).split(','); + if (typeof uids == 'string') + uids = String(uids).split(','); for (i=0, len=uids.length; i<len; i++) { uid = uids[i]; @@ -3027,7 +3028,7 @@ // with select_all mode checking this.uids_to_list = function(uids) { - return this.select_all_mode ? '*' : uids.join(','); + return this.select_all_mode ? '*' : (uids.length <= 1 ? uids.join(',') : uids); }; // Sets title of the delete button -- Gitblit v1.9.1