Only left-clicking now activates the selection of an item
This commit is contained in:
parent
a9b794e70c
commit
c71032a707
3 changed files with 10 additions and 8 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -113,13 +113,15 @@ class FileManager {
|
||||||
|
|
||||||
selectRow() {
|
selectRow() {
|
||||||
$('#file_listing tr').on('mousedown', event => {
|
$('#file_listing tr').on('mousedown', event => {
|
||||||
if($(event.target).is('th') || $(event.target).is('input[data-action="selectAll"]')) {
|
if (event.which === 1) {
|
||||||
new ActionsClass().highlightAll(event);
|
if ($(event.target).is('th') || $(event.target).is('input[data-action="selectAll"]')) {
|
||||||
} else if($(event.target).is('td') || $(event.target).is('input[data-action="addSelection"]')) {
|
new ActionsClass().highlightAll(event);
|
||||||
new ActionsClass().toggleHighlight(event);
|
} else if ($(event.target).is('td') || $(event.target).is('input[data-action="addSelection"]')) {
|
||||||
}
|
new ActionsClass().toggleHighlight(event);
|
||||||
|
}
|
||||||
|
|
||||||
new ActionsClass().toggleMassActions();
|
new ActionsClass().toggleMassActions();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue