]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: layerdetails Don't remove alert from dom on dismissal
authorMichael Wood <michael.g.wood@intel.com>
Tue, 3 Feb 2015 16:08:47 +0000 (16:08 +0000)
committerAlexandru DAMIAN <alexandru.damian@intel.com>
Mon, 9 Feb 2015 17:54:34 +0000 (17:54 +0000)
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>
lib/toaster/toastergui/static/js/layerdetails.js
lib/toaster/toastergui/templates/layerdetails.html

index 9339ae8bccf7e3bbc49a7a2138218b8370eddd74..99552de8c15b0c1b1c8cbd1a1db13743f180f78f 100644 (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');
index 7a1a22daa2a32e84243712dd43cc436157c4f74d..0321a0b1928378cdfac05d5a3a3bc54d053f1f36 100644 (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">