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>
This commit is contained in:
Belen Barros Pena authored and Richard Purdie committed 2015-03-25 12:39:56 +00:00
1 parent 63510bf20d
commit 38c3f2ec5e
1 file changed
+5
@@ -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("");