summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js/projectpage.js
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/projectpage.js')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/projectpage.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/projectpage.js b/bitbake/lib/toaster/toastergui/static/js/projectpage.js
index 30989a016c..b0fe4510a9 100644
--- a/bitbake/lib/toaster/toastergui/static/js/projectpage.js
+++ b/bitbake/lib/toaster/toastergui/static/js/projectpage.js
@@ -103,6 +103,12 @@ function projectPageInit(ctx) {
103 layerAddBtn.removeAttr("disabled"); 103 layerAddBtn.removeAttr("disabled");
104 }); 104 });
105 105
106 layerAddInput.keyup(function() {
107 if ($(this).val().length == 0) {
108 layerAddBtn.attr("disabled", "disabled")
109 }
110 });
111
106 layerAddBtn.click(function(e){ 112 layerAddBtn.click(function(e){
107 e.preventDefault(); 113 e.preventDefault();
108 var layerObj = currentLayerAddSelection; 114 var layerObj = currentLayerAddSelection;