Rename selction option 'mouse' to 'clickndrag'.

This commit is contained in:
Lars Jung 2015-03-10 01:26:17 +01:00
parent af6146a392
commit d0ab52a256
2 changed files with 4 additions and 4 deletions

View file

@ -185,14 +185,14 @@ modulejs.define('ext/select', ['_', '$', 'core/settings', 'core/resource', 'core
function init() { function init() {
if (!settings.enabled || (!settings.mouse && !settings.checkboxes)) { if (!settings.enabled || (!settings.clickndrag && !settings.checkboxes)) {
return; return;
} }
event.sub('location.changed', onLocationChanged); event.sub('location.changed', onLocationChanged);
event.sub('location.refreshed', onLocationRefreshed); event.sub('location.refreshed', onLocationRefreshed);
if (settings.mouse) { if (settings.clickndrag) {
$selectionRect.hide().appendTo('body'); $selectionRect.hide().appendTo('body');
// $document // $document

View file

@ -270,12 +270,12 @@ Options
Make entries selectable. Make entries selectable.
At the moment only needed for packaged download. At the moment only needed for packaged download.
- mouse: boolean, allow first mouse button + drag selection - clickndrag: boolean, allow first mouse button + drag selection
- checkboxes: boolean, show a checkbox on mouse over item - checkboxes: boolean, show a checkbox on mouse over item
*/ */
"select": { "select": {
"enabled": true, "enabled": true,
"mouse": true, "clickndrag": true,
"checkboxes": true "checkboxes": true
}, },