From 023811890630d66e7e4284653a189a634cdd53f1 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 15 Jun 2011 15:50:16 +0000 Subject: [PATCH] new preference about how to select additional lines in lists --- etemplate/inc/class.nextmatch_widget.inc.php | 3 ++- preferences/inc/class.preferences_hooks.inc.php | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.nextmatch_widget.inc.php b/etemplate/inc/class.nextmatch_widget.inc.php index 6768fbd72a..5ee86825fa 100644 --- a/etemplate/inc/class.nextmatch_widget.inc.php +++ b/etemplate/inc/class.nextmatch_widget.inc.php @@ -902,7 +902,8 @@ class nextmatch_widget { // Create a new action object if (elem.id) { - var obj = objectCntr.addObject(elem.id, new nextmatchRowAOI(elem)); + var obj = objectCntr.addObject(elem.id, new nextmatchRowAOI(elem, '. + ($GLOBALS['egw_info']['user']['preferences']['common']['select_mode']?$GLOBALS['egw_info']['user']['preferences']['common']['select_mode']:'EGW_SELECTMODE_DEFAULT').')); obj.updateActionLinks(actionLinks); } diff --git a/preferences/inc/class.preferences_hooks.inc.php b/preferences/inc/class.preferences_hooks.inc.php index f60a27c7c0..aea3df7c62 100644 --- a/preferences/inc/class.preferences_hooks.inc.php +++ b/preferences/inc/class.preferences_hooks.inc.php @@ -171,6 +171,19 @@ class preferences_hooks 'admin' => False, 'forced' => '1', ), + 'select_mode' => array( + 'type' => 'select', + 'label' => 'Select additional lines in lists by', + 'name' => 'select_mode', + 'values' => array( + 'EGW_SELECTMODE_DEFAULT' => 'holding Ctrl/Cmd key and click on the line', + 'EGW_SELECTMODE_TOGGLE' => 'just clicking on the line, like a checkbox', + ), + 'help' => 'If a line is already selected, further lines get either selected by holding Ctrl/Cmd key and clicking on them (to not unselect the current selected line), or by just clicking on them as for a checkbox. If no line is selected clicking on one allways selects it. Holding down Shift key selects everything between current select line and the one clicked.', + 'xmlrpc' => True, + 'admin' => False, + 'default' => 'EGW_SELECTMODE_DEFAULT', + ), 'tz' => array( 'type' => 'select', 'label' => 'Time zone',