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 () { $(document).ready(function () {
$('[data-attr="power"]').click(function (event) { $('[data-attr="power"]').click(function (event) {
if (! $(this).hasClass('disabled')) {
Socket.emit('set status', $(this).data('action')); Socket.emit('set status', $(this).data('action'));
}
}); });
var ctc = $('#chart_cpu'); var ctc = $('#chart_cpu');
var timeLabels = []; var timeLabels = [];
var cpuData = []; var cpuData = [];