mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 09:02:28 +01:00
Prevent clicky mcgee from clicking too quickly
This commit is contained in:
parent
b9512dccb8
commit
ae8f53d8ef
@ -62,8 +62,11 @@ var CONSOLE_PUSH_FREQ = 200;
|
||||
|
||||
$(document).ready(function () {
|
||||
$('[data-attr="power"]').click(function (event) {
|
||||
Socket.emit('set status', $(this).data('action'));
|
||||
if (! $(this).hasClass('disabled')) {
|
||||
Socket.emit('set status', $(this).data('action'));
|
||||
}
|
||||
});
|
||||
|
||||
var ctc = $('#chart_cpu');
|
||||
var timeLabels = [];
|
||||
var cpuData = [];
|
||||
|
Loading…
Reference in New Issue
Block a user