summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-02-03 16:08:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-10 23:07:50 +0000
commit02b7704052df42004d3433ccb9ed7882d5b3efd6 (patch)
treeb6cce480973d64e083db85df0af74b1e071ae3b2 /bitbake
parenta1347a150af1964a7063d9577497ef5ad11227b8 (diff)
downloadpoky-02b7704052df42004d3433ccb9ed7882d5b3efd6.tar.gz
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>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/layerdetails.js2
-rw-r--r--bitbake/lib/toaster/toastergui/templates/layerdetails.html2
2 files changed, 3 insertions, 1 deletions
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) {
261 $("#alert-area").show(); 261 $("#alert-area").show();
262 } 262 }
263 263
264 $("#dismiss-alert").click(function(){ $(this).parent().hide() });
265
264 /* Add or remove this layer from the project */ 266 /* Add or remove this layer from the project */
265 addRmLayerBtn.click(function() { 267 addRmLayerBtn.click(function() {
266 var directive = $(this).data('directive'); 268 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 @@
72 72
73 <div class="row-fluid span7 tabbable"> 73 <div class="row-fluid span7 tabbable">
74 <div class="alert alert-info lead" id="alert-area" style="display:none"> 74 <div class="alert alert-info lead" id="alert-area" style="display:none">
75 <button type="button" class="close" id="dismiss-alert" data-dismiss="alert">&times;</button> 75 <button type="button" class="close" id="dismiss-alert">&times;</button>
76 <span id="alert-msg"></span> 76 <span id="alert-msg"></span>
77 </div> 77 </div>
78 <ul class="nav nav-pills"> 78 <ul class="nav nav-pills">