summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@linux.intel.com>2015-03-22 19:35:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-24 22:54:37 +0000
commitfe9fff960d0a6fc24e0e177e5194f93a7be9456b (patch)
tree0c35a312c72bb5a15173cacb2288eba47b74735f
parent40b46ce28b0b93241f9ce581f1e295e95bbff284 (diff)
downloadbitbake-fe9fff960d0a6fc24e0e177e5194f93a7be9456b.tar.gz
toasterui: hide right column if empty
In the layer details page, if the background information about the layer that shows in the right hand column is completely empty, remove it altogether. Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com>
-rw-r--r--lib/toaster/toastergui/static/js/layerdetails.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/static/js/layerdetails.js b/lib/toaster/toastergui/static/js/layerdetails.js
index 22c40d971..5b7787728 100644
--- a/lib/toaster/toastergui/static/js/layerdetails.js
+++ b/lib/toaster/toastergui/static/js/layerdetails.js
@@ -382,6 +382,11 @@ function layerDetailsPageInit (ctx) {
}
});
+ /* Hide the right column if it contains no information */
+ if ($("dl.item-info").children(':visible').length == 0) {
+ $("dl.item-info").parent().hide();
+ }
+
/* Clear the current search selection and reload the results */
$(".target-search-clear").click(function(){
$("#target-search").val("");