[bitbake-devel] [PATCH 1/2] toaster: disable build button as needed

Elliot Smith elliot.smith at intel.com
Thu Sep 3 14:43:50 UTC 2015


From: Belen Barros Pena <belen.barros.pena at intel.com>

Make sure that the 'build' button in the 'new build'
form is disabled whenever the 'recipe(s)' text
field is empty.

Signed-off-by: Belen Barros Pena <belen.barros.pena at intel.com>
Signed-off-by: Elliot Smith <elliot.smith at intel.com>
---
 lib/toaster/toastergui/static/js/base.js | 2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/toaster/toastergui/static/js/base.js b/lib/toaster/toastergui/static/js/base.js
index eba9c16..e0df463 100644
--- a/lib/toaster/toastergui/static/js/base.js
+++ b/lib/toaster/toastergui/static/js/base.js
@@ -82,7 +82,6 @@ function basePageInit(ctx) {
     return;
   }
 
-
   /* Hide the change project icon when there is only one project */
   if (ctx.numProjects === 1) {
     $('#project .icon-pencil').hide();
@@ -140,7 +139,6 @@ function basePageInit(ctx) {
 
           /* we can build this project; enable input fields */
           newBuildTargetInput.removeAttr("disabled");
-          newBuildTargetBuildBtn.removeAttr("disabled");
        }
       }, null);
   }
-- 
1.9.3

---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.




More information about the bitbake-devel mailing list