diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/toastergui/static/js/table.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/static/js/table.js b/bitbake/lib/toaster/toastergui/static/js/table.js index 7ac4ed5859..c154844820 100644 --- a/bitbake/lib/toaster/toastergui/static/js/table.js +++ b/bitbake/lib/toaster/toastergui/static/js/table.js | |||
@@ -316,7 +316,7 @@ function tableInit(ctx){ | |||
316 | $("#"+ctx.tableName+" th").each(function(){ | 316 | $("#"+ctx.tableName+" th").each(function(){ |
317 | for (var i in cols_hidden){ | 317 | for (var i in cols_hidden){ |
318 | if ($(this).hasClass(cols_hidden[i])){ | 318 | if ($(this).hasClass(cols_hidden[i])){ |
319 | $("."+cols_hidden[i]).hide(); | 319 | table.find("."+cols_hidden[i]).hide(); |
320 | $("#checkbox-"+cols_hidden[i]).removeAttr("checked"); | 320 | $("#checkbox-"+cols_hidden[i]).removeAttr("checked"); |
321 | } | 321 | } |
322 | } | 322 | } |
@@ -326,7 +326,7 @@ function tableInit(ctx){ | |||
326 | * user setting. | 326 | * user setting. |
327 | */ | 327 | */ |
328 | for (var i in defaultHiddenCols) { | 328 | for (var i in defaultHiddenCols) { |
329 | $("."+defaultHiddenCols[i]).hide(); | 329 | table.find("."+defaultHiddenCols[i]).hide(); |
330 | $("#checkbox-"+defaultHiddenCols[i]).removeAttr("checked"); | 330 | $("#checkbox-"+defaultHiddenCols[i]).removeAttr("checked"); |
331 | } | 331 | } |
332 | } | 332 | } |
@@ -370,9 +370,9 @@ function tableInit(ctx){ | |||
370 | var disabled_cols = []; | 370 | var disabled_cols = []; |
371 | 371 | ||
372 | if ($(this).prop("checked")) { | 372 | if ($(this).prop("checked")) { |
373 | $("."+col).show(); | 373 | table.find("."+col).show(); |
374 | } else { | 374 | } else { |
375 | $("."+col).hide(); | 375 | table.find("."+col).hide(); |
376 | /* If we're ordered by the column we're hiding remove the order by */ | 376 | /* If we're ordered by the column we're hiding remove the order by */ |
377 | if (col === tableParams.orderby || | 377 | if (col === tableParams.orderby || |
378 | '-' + col === tableParams.orderby){ | 378 | '-' + col === tableParams.orderby){ |