[RX-MSP] Fix double binding on click for the enable button

The click handler was registered to both the div and the anchor,
causing it to fire twice and shrink the window twice. Make sure
we only bind to the anchor.
pull/956/head
Alberto García Hierro 5 years ago
parent 7f4ec9a559
commit 4fed26d4d5

@ -128,7 +128,7 @@ function localizeAxisNames() {
}
$(document).ready(function() {
$(".button-enable").click(function() {
$("a.button-enable").click(function() {
var
shrinkHeight = $(".warning").height();
@ -190,4 +190,4 @@ $(document).ready(function() {
updateControlPositions();
setInterval(transmitChannels, 50);
});
});

Loading…
Cancel
Save