1
1
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:
Dane Everitt 2017-01-23 22:26:46 -05:00
parent b9512dccb8
commit ae8f53d8ef
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -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 = [];