From 38c3f2ec5ee30a6ff12e7f0794452bd3379a0fb7 Mon Sep 17 00:00:00 2001 From: Belen Barros Pena Date: Sun, 22 Mar 2015 19:35:11 +0000 Subject: [PATCH] bitbake: 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. (Bitbake rev: fe9fff960d0a6fc24e0e177e5194f93a7be9456b) Signed-off-by: Belen Barros Pena Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/static/js/layerdetails.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js index 22c40d971a..5b7787728d 100644 --- a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js +++ b/bitbake/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("");