summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-05-26 16:12:24 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-15 08:35:04 +0100
commitc42f1cc81dda06ee39d1f0dd76a14da17b9c7f54 (patch)
treeaa31d5049db02381420681f712c54ffc6c40ad18 /bitbake
parentcaae3b6206dc31690f0c6638daaa7bb072c69042 (diff)
downloadpoky-c42f1cc81dda06ee39d1f0dd76a14da17b9c7f54.tar.gz
bitbake: toaster: table.js Add the ability to highlight a particular row
As in the old build tables it's useful to jump and highlight a particular row in the table using the #hash in the URL. (Bitbake rev: 927bfc26ffcb0eb6c0a5b3c0905b7efc2f19b9a2) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/table.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/table.js b/bitbake/lib/toaster/toastergui/static/js/table.js
index 749eb8e75c..7b55102546 100644
--- a/bitbake/lib/toaster/toastergui/static/js/table.js
+++ b/bitbake/lib/toaster/toastergui/static/js/table.js
@@ -170,6 +170,15 @@ function tableInit(ctx){
170 table.css("padding-bottom", 0); 170 table.css("padding-bottom", 0);
171 tableContainer.css("visibility", "visible"); 171 tableContainer.css("visibility", "visible");
172 172
173 /* If we have a hash in the url try and highlight that item in the table */
174 if (window.location.hash){
175 var highlight = $("table a[name="+window.location.hash.replace('#',''));
176 if (highlight.length > 0){
177 highlight.parents("tr").addClass('highlight');
178 window.scroll(0, highlight.position().top - 50);
179 }
180 }
181
173 table.trigger("table-done", [tableData.total, tableParams]); 182 table.trigger("table-done", [tableData.total, tableParams]);
174 } 183 }
175 184