new preference about how to select additional lines in lists

This commit is contained in:
Ralf Becker 2011-06-15 15:50:16 +00:00
parent 7f9db3701b
commit 0238118906
2 changed files with 15 additions and 1 deletions

View File

@ -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);
}

View File

@ -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',