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.
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
$("#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');
<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">