mirror of
https://github.com/pterodactyl/panel.git
synced 2024-10-27 20:32:28 +01:00
Merge pull request #576 from OrangeJuiced/develop
Only left-clicking now activates the selection of an item
This commit is contained in:
commit
b2429f1b55
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -113,6 +113,7 @@ class FileManager {
|
|||||||
|
|
||||||
selectRow() {
|
selectRow() {
|
||||||
$('#file_listing tr').on('mousedown', event => {
|
$('#file_listing tr').on('mousedown', event => {
|
||||||
|
if (event.which === 1) {
|
||||||
if ($(event.target).is('th') || $(event.target).is('input[data-action="selectAll"]')) {
|
if ($(event.target).is('th') || $(event.target).is('input[data-action="selectAll"]')) {
|
||||||
new ActionsClass().highlightAll(event);
|
new ActionsClass().highlightAll(event);
|
||||||
} else if ($(event.target).is('td') || $(event.target).is('input[data-action="addSelection"]')) {
|
} else if ($(event.target).is('td') || $(event.target).is('input[data-action="addSelection"]')) {
|
||||||
@ -120,6 +121,7 @@ class FileManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
new ActionsClass().toggleMassActions();
|
new ActionsClass().toggleMassActions();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user