summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js/layerBtn.js
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/layerBtn.js')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/layerBtn.js9
1 files changed, 1 insertions, 8 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js
index da0241c62b..7318b3f50e 100644
--- a/bitbake/lib/toaster/toastergui/static/js/layerBtn.js
+++ b/bitbake/lib/toaster/toastergui/static/js/layerBtn.js
@@ -1,6 +1,6 @@
1"use strict"; 1"use strict";
2 2
3function layerBtnsInit(ctx) { 3function layerBtnsInit() {
4 4
5 /* Remove any current bindings to avoid duplicated binds */ 5 /* Remove any current bindings to avoid duplicated binds */
6 $(".layerbtn").unbind('click'); 6 $(".layerbtn").unbind('click');
@@ -80,11 +80,4 @@ function layerBtnsInit(ctx) {
80 imgCustomModal.data('recipe', $(this).data('recipe')); 80 imgCustomModal.data('recipe', $(this).data('recipe'));
81 imgCustomModal.modal('show'); 81 imgCustomModal.modal('show');
82 }); 82 });
83
84 /* Setup the initial state of the buttons */
85
86 for (var i in ctx.projectLayers){
87 $(".layer-exists-" + ctx.projectLayers[i]).show();
88 $(".layer-add-" + ctx.projectLayers[i]).hide();
89 }
90} 83}