From 02b7704052df42004d3433ccb9ed7882d5b3efd6 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Tue, 3 Feb 2015 16:08:47 +0000 Subject: bitbake: toaster: layerdetails Don't remove alert from dom on dismissal When dismissing the alert we actually want to keep the alert area still in the dom for the use of future alerts. The default behaviour is to remove it from the dom. Hide it again instead. (Bitbake rev: b3af4f01856c1983f2e77293444e2c3c1b08f879) Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/js/layerdetails.js | 2 ++ bitbake/lib/toaster/toastergui/templates/layerdetails.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js index 9339ae8bcc..99552de8c1 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js +++ b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js @@ -261,6 +261,8 @@ function layerDetailsPageInit (ctx) { $("#alert-area").show(); } + $("#dismiss-alert").click(function(){ $(this).parent().hide() }); + /* Add or remove this layer from the project */ addRmLayerBtn.click(function() { var directive = $(this).data('directive'); diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index 7a1a22daa2..0321a0b192 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html @@ -72,7 +72,7 @@