[oe-commits] [bitbake] 10/10: toaster: layerBtn avoid connecting handler to other build buttons
git at git.openembedded.org
git at git.openembedded.org
Tue Jul 5 12:40:20 UTC 2016
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit 13ff96f637d3e519668fc023e7d354b746710dc4
Author: Michael Wood <michael.g.wood at intel.com>
AuthorDate: Mon Jul 4 16:34:45 2016 +0100
toaster: layerBtn avoid connecting handler to other build buttons
Some pages contain other build buttons which may have the same class
attached. Make sure that we only select the buttons in the tables where
layerBtn is used.
[YOCTO #9841]
Signed-off-by: Michael Wood <michael.g.wood 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/layerBtn.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/toaster/toastergui/static/js/layerBtn.js b/lib/toaster/toastergui/static/js/layerBtn.js
index 259271d..9f9eda1 100644
--- a/lib/toaster/toastergui/static/js/layerBtn.js
+++ b/lib/toaster/toastergui/static/js/layerBtn.js
@@ -55,8 +55,8 @@ function layerBtnsInit() {
});
});
- $(".build-recipe-btn").unbind('click');
- $(".build-recipe-btn").click(function(e){
+ $("td .build-recipe-btn").unbind('click');
+ $("td .build-recipe-btn").click(function(e){
e.preventDefault();
var recipe = $(this).data('recipe-name');
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list