mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-29 06:25:18 -04:00
Rename selction option 'mouse' to 'clickndrag'.
This commit is contained in:
parent
af6146a392
commit
d0ab52a256
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue