summaryrefslogtreecommitdiffstats
path: root/bitbake
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-25 12:39:56 +0000
commit38c3f2ec5ee30a6ff12e7f0794452bd3379a0fb7 (patch)
treef2443848b69d9ca86f6db31acc0288554ce21092 /bitbake
parent63510bf20d9896de3324af7b6ec1541afe0113d9 (diff)
downloadast2050-yocto-poky-38c3f2ec5ee30a6ff12e7f0794452bd3379a0fb7.zip
ast2050-yocto-poky-38c3f2ec5ee30a6ff12e7f0794452bd3379a0fb7.tar.gz
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 <belen.barros.pena@linux.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.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/layerdetails.js b/bitbake/lib/toaster/toastergui/static/js/layerdetails.js
index 22c40d9..5b77877 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("");
OpenPOWER on IntegriCloud