diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-02-03 16:08:47 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-10 23:07:50 +0000 |
commit | 02b7704052df42004d3433ccb9ed7882d5b3efd6 (patch) | |
tree | b6cce480973d64e083db85df0af74b1e071ae3b2 /bitbake | |
parent | a1347a150af1964a7063d9577497ef5ad11227b8 (diff) | |
download | ast2050-yocto-poky-02b7704052df42004d3433ccb9ed7882d5b3efd6.zip ast2050-yocto-poky-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.js | 2 | ||||
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/layerdetails.html | 2 |
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 9339ae8..99552de 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) { $("#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'); diff --git a/bitbake/lib/toaster/toastergui/templates/layerdetails.html b/bitbake/lib/toaster/toastergui/templates/layerdetails.html index 7a1a22d..0321a0b 100644 --- a/bitbake/lib/toaster/toastergui/templates/layerdetails.html +++ b/bitbake/lib/toaster/toastergui/templates/layerdetails.html @@ -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"> |