mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-27 21:44:22 -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() {
|
||||
|
||||
if (!settings.enabled || (!settings.mouse && !settings.checkboxes)) {
|
||||
if (!settings.enabled || (!settings.clickndrag && !settings.checkboxes)) {
|
||||
return;
|
||||
}
|
||||
|
||||
event.sub('location.changed', onLocationChanged);
|
||||
event.sub('location.refreshed', onLocationRefreshed);
|
||||
|
||||
if (settings.mouse) {
|
||||
if (settings.clickndrag) {
|
||||
$selectionRect.hide().appendTo('body');
|
||||
|
||||
// $document
|
||||
|
|
|
@ -270,12 +270,12 @@ Options
|
|||
Make entries selectable.
|
||||
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
|
||||
*/
|
||||
"select": {
|
||||
"enabled": true,
|
||||
"mouse": true,
|
||||
"clickndrag": true,
|
||||
"checkboxes": true
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue