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:
parent
a1347a150a
commit
02b7704052
|
@ -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');
|
||||
|
|
|
@ -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">×</button>
|
||||
<button type="button" class="close" id="dismiss-alert">×</button>
|
||||
<span id="alert-msg"></span>
|
||||
</div>
|
||||
<ul class="nav nav-pills">
|
||||
|
|
Loading…
Reference in New Issue