From 97c81e089ffec1fe11d1d0fa48fabd2e6d418eb9 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Tue, 4 Feb 2014 17:38:17 +0000 Subject: bitbake: toaster: fix javascript for table filters This patch adds javascript link for resetting page filters in the tool tip "Show all" button. Also fixes a JS bug for when the cookie is not set yet. (Bitbake rev: e123922274ea875105e6ed855b3368b8b77fca64) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/templates/basetable_bottom.html | 2 ++ bitbake/lib/toaster/toastergui/templates/basetable_top.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'bitbake') diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html index abce7c24b7..4eb303da79 100644 --- a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html +++ b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html @@ -40,6 +40,7 @@ // we load cookies for the column display save = $.cookie('_displaycols_{{objectname}}'); + if (save != undefined) { setting = save.split(';'); for ( i = 0; i < setting.length; i++) { if (setting[i].length > 0) { @@ -52,6 +53,7 @@ } } } + } $('.chbxtoggle').each(function () { showhideTableColumn($(this).attr('id'), $(this).is(':checked')) diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_top.html b/bitbake/lib/toaster/toastergui/templates/basetable_top.html index 84c73a72e0..9a8bacb384 100644 --- a/bitbake/lib/toaster/toastergui/templates/basetable_top.html +++ b/bitbake/lib/toaster/toastergui/templates/basetable_top.html @@ -79,7 +79,7 @@ {%if tc.orderfield%}{{tc.name}}{%else%}{{tc.name}}{%endif%} {%if tc.ordericon%} {%endif%} {%if tc.filter%}
- +
{%endif%} {% endfor %} -- cgit v1.2.3-54-g00ecf