diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/layerBtn.js')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/layerBtn.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js index 6a1d4b1606..44bf612a58 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js +++ b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js | |||
@@ -2,7 +2,10 @@ | |||
2 | 2 | ||
3 | function layerBtnsInit(ctx) { | 3 | function layerBtnsInit(ctx) { |
4 | 4 | ||
5 | $(".layerbtn").click(function (){ | 5 | /* Remove any current bindings to avoid duplicated binds */ |
6 | $(".layerbtn").unbind('click'); | ||
7 | |||
8 | $(".layerbtn").click(function (){ | ||
6 | var layerObj = $(this).data("layer"); | 9 | var layerObj = $(this).data("layer"); |
7 | var add = ($(this).data('directive') === "add"); | 10 | var add = ($(this).data('directive') === "add"); |
8 | var thisBtn = $(this); | 11 | var thisBtn = $(this); |