summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-11-24 11:19:55 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-30 15:48:09 +0000
commite336017e87090767ce97dda7246b1a19be3ac23d (patch)
tree71cba2b453508acce8dca2900df26416a8807921 /bitbake/lib/toaster
parent6191f71f81ad84e846aef5d6d0424a397b4ec360 (diff)
downloadpoky-e336017e87090767ce97dda7246b1a19be3ac23d.tar.gz
bitbake: toaster: customrecipejs Consume click event on 'a' link if disabled
Consume the click event on the download recipe link if it's disabled. To prevent the link from sending user to an error page. See http://getbootstrap.com/css/#forms-disabled-fieldsets and a link caveat. [YOCTO #10151] (Bitbake rev: bc8401e78cea140349bded228d38f72f628b3980) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/customrecipe.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
index 9ea9602881..8b1c190df9 100644
--- a/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
+++ b/bitbake/lib/toaster/toastergui/static/js/customrecipe.js
@@ -312,5 +312,11 @@ function customRecipePageInit(ctx) {
312 }); 312 });
313 }); 313 });
314 314
315 /* Stop the download link from working if it is in disabled state
316 * http://getbootstrap.com/css/#forms-disabled-fieldsets
317 */
318 $("a[disabled=disabled]").click(function(e){
319 e.preventDefault();
320 });
315 321
316} 322}