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 <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Wood 2015-02-03 16:08:47 +00:00 committed by Richard Purdie
parent a1347a150a
commit 02b7704052
2 changed files with 3 additions and 1 deletions

View File

@ -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');

View File

@ -72,7 +72,7 @@
<div class="row-fluid span7 tabbable">
<div class="alert alert-info lead" id="alert-area" style="display:none">
<button type="button" class="close" id="dismiss-alert" data-dismiss="alert">&times;</button>
<button type="button" class="close" id="dismiss-alert">&times;</button>
<span id="alert-msg"></span>
</div>
<ul class="nav nav-pills">