summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {
});
});
+ /* Stop the download link from working if it is in disabled state
+ * http://getbootstrap.com/css/#forms-disabled-fieldsets
+ */
+ $("a[disabled=disabled]").click(function(e){
+ e.preventDefault();
+ });
}