diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-08-06 19:23:47 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-08-06 16:04:49 -0500 |
commit | 5194f0401ec038359397fd22654f46b3612fc3a6 (patch) | |
tree | 9c3c86b9dc97076ed3928fa087260a5bb69d3be9 | |
parent | c1993d08ccf64f158c346d1cc0a42f2e2b3d60bc (diff) | |
download | poky-5194f0401ec038359397fd22654f46b3612fc3a6.tar.gz |
bitbake: toastergui: Move click disabled check after table ready event
We were attaching this handler before the elements were fully ready in
the dom. Which allowed these links although disabled to take users to
the change machine page.
(Bitbake rev: 8245a7d679914ca7d4548ab7e83b5047ff8a1ff5)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/layerdetails.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js index 96372f06f4..d9ba687354 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js +++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js | |||
@@ -202,6 +202,12 @@ function layerDetailsPageInit (ctx) { | |||
202 | /* re run the machinesTabShow to update the text */ | 202 | /* re run the machinesTabShow to update the text */ |
203 | machinesTabShow(); | 203 | machinesTabShow(); |
204 | } | 204 | } |
205 | |||
206 | $(".select-machine-btn").click(function(e){ | ||
207 | if ($(this).attr("disabled") === "disabled") | ||
208 | e.preventDefault(); | ||
209 | }); | ||
210 | |||
205 | }); | 211 | }); |
206 | 212 | ||
207 | $("#targets-tab").on('show', targetsTabShow); | 213 | $("#targets-tab").on('show', targetsTabShow); |
@@ -385,10 +391,6 @@ function layerDetailsPageInit (ctx) { | |||
385 | $(this).parents("form").submit(); | 391 | $(this).parents("form").submit(); |
386 | }); | 392 | }); |
387 | 393 | ||
388 | $(".select-machine-btn").click(function(e){ | ||
389 | if ($(this).attr("disabled") === "disabled") | ||
390 | e.preventDefault(); | ||
391 | }); | ||
392 | 394 | ||
393 | layerDepsList.find(".icon-trash").click(layerDepRemoveClick); | 395 | layerDepsList.find(".icon-trash").click(layerDepRemoveClick); |
394 | layerDepsList.find("a").tooltip(); | 396 | layerDepsList.find("a").tooltip(); |