From b829906ff23d3846d79b3c2e2fcf6902afaf12eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20G=C3=A9nieux?= Date: Sun, 26 Apr 2015 16:10:14 +0530 Subject: [PATCH] added: option for keeping selection while selecting another item --- modoboa/static/js/jquery.htmltable.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modoboa/static/js/jquery.htmltable.js b/modoboa/static/js/jquery.htmltable.js index fd321bc3e..18c281e26 100644 --- a/modoboa/static/js/jquery.htmltable.js +++ b/modoboa/static/js/jquery.htmltable.js @@ -90,7 +90,8 @@ } this.prev_dir = itfunc; return; - } else if (!this.ctrl_pressed && (!this.last_selection || !this.last_selection.is($row))) { + } else if (!(this.options.keep_selection || this.ctrl_pressed) && + (!this.last_selection || !this.last_selection.is($row))) { this.clear_selection(); } this.last_selection = $row;