Skip to content

Commit ae8f53d

Browse files
committed
Prevent clicky mcgee from clicking too quickly
1 parent b9512dc commit ae8f53d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

public/themes/pterodactyl/js/frontend/console.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,11 @@ var CONSOLE_PUSH_FREQ = 200;
6262

6363
$(document).ready(function () {
6464
$('[data-attr="power"]').click(function (event) {
65-
Socket.emit('set status', $(this).data('action'));
65+
if (! $(this).hasClass('disabled')) {
66+
Socket.emit('set status', $(this).data('action'));
67+
}
6668
});
69+
6770
var ctc = $('#chart_cpu');
6871
var timeLabels = [];
6972
var cpuData = [];

0 commit comments

Comments
 (0)