Prevent clicky mcgee from clicking too quickly
This commit is contained in:
parent
b9512dccb8
commit
ae8f53d8ef
1 changed files with 4 additions and 1 deletions
|
@ -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 = [];
|
||||||
|
|
Loading…
Reference in a new issue