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)
downloadpoky-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 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) {
382 } 382 }
383 }); 383 });
384 384
385 /* Hide the right column if it contains no information */
386 if ($("dl.item-info").children(':visible').length == 0) {
387 $("dl.item-info").parent().hide();
388 }
389
385 /* Clear the current search selection and reload the results */ 390 /* Clear the current search selection and reload the results */
386 $(".target-search-clear").click(function(){ 391 $(".target-search-clear").click(function(){
387 $("#target-search").val(""); 392 $("#target-search").val("");