1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-23 01:22:30 +01:00

Better parent click finding, fixes bugs when clicking directly on words

This commit is contained in:
Dane Everitt 2016-10-06 17:27:50 -04:00
parent 77198b48df
commit d06f83a0cd
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -46,7 +46,7 @@ class ContextMenuClass {
rightClick() {
$('#file_listing > tbody td').on('contextmenu', event => {
const parent = $(event.target).parent();
const parent = $(event.target).closest('tr');
const menu = $(this.makeMenu());
if (parent.data('type') === 'disabled') return;