summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/static/js/table.js
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/static/js/table.js')
-rw-r--r--bitbake/lib/toaster/toastergui/static/js/table.js21
1 files changed, 1 insertions, 20 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/table.js b/bitbake/lib/toaster/toastergui/static/js/table.js
index f738144ae5..7f76f555fc 100644
--- a/bitbake/lib/toaster/toastergui/static/js/table.js
+++ b/bitbake/lib/toaster/toastergui/static/js/table.js
@@ -101,27 +101,8 @@ function tableInit(ctx){
101 var row = $("<tr></tr>"); 101 var row = $("<tr></tr>");
102 column_index = -1; 102 column_index = -1;
103 for (var key_j in tableData.rows[i]){ 103 for (var key_j in tableData.rows[i]){
104
105 /* if we have a static: version of a key, prefer the static: version for rendering */
106 var orig_key_j = key_j;
107
108 if (key_j.indexOf("static:") === 0) {
109 if (key_j.substr("static:".length) in tableData.rows[i]) {
110 continue;
111 }
112 orig_key_j = key_j.substr("static:".length)
113 } else if (("static:" + key_j) in tableData.rows[i]) {
114 key_j = "static:" + key_j;
115 }
116
117 /* we skip over un-displayable column entries */
118 column_index += 1;
119 if (! tableData.columns[column_index].displayable) {
120 continue;
121 }
122
123 var td = $("<td></td>"); 104 var td = $("<td></td>");
124 td.prop("class", orig_key_j); 105 td.prop("class", key_j);
125 if (tableData.rows[i][key_j]){ 106 if (tableData.rows[i][key_j]){
126 td.html(tableData.rows[i][key_j]); 107 td.html(tableData.rows[i][key_j]);
127 } 108 }