[oe-commits] [bitbake] 08/20: toaster: disable add layer button on click

git at git.openembedded.org git at git.openembedded.org
Thu Feb 25 17:59:25 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

commit e0e409cd482d160c633b99abcca83029c235841e
Author: Belen Barros Pena <belen.barros.pena at intel.com>
AuthorDate: Mon Feb 22 09:08:35 2016 +0000

    toaster: disable add layer button on click
    
    The 'add layer' button in the project configuration page remains enabled
    after you add a layer. If you click it again, the same layer you just
    added is added again.
    
    This patch disables the 'add layer' button on click, to avoid this bit
    of weirdness.
    
    [YOCTO #8905]
    
    Signed-off-by: Belen Barros Pena <belen.barros.pena at intel.com>
    Signed-off-by: Elliot Smith <elliot.smith at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/toaster/toastergui/static/js/projectpage.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/toaster/toastergui/static/js/projectpage.js b/lib/toaster/toastergui/static/js/projectpage.js
index 4a482d7..0666bde 100644
--- a/lib/toaster/toastergui/static/js/projectpage.js
+++ b/lib/toaster/toastergui/static/js/projectpage.js
@@ -116,6 +116,8 @@ function projectPageInit(ctx) {
     addRmLayer(layerObj, true);
     /* Reset the text input */
     layerAddInput.val("");
+    /* Disable the add layer button*/
+    layerAddBtn.attr("disabled", "disabled");
   });
 
   function addRmLayer(layerObj, add){

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list