From: Alexandru DAMIAN Date: Tue, 4 Feb 2014 17:38:17 +0000 (+0000) Subject: bitbake: toaster: fix javascript for table filters X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=97c81e089ffec1fe11d1d0fa48fabd2e6d418eb9;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html index abce7c24b74..4eb303da792 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 84c73a72e03..9a8bacb3843 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 %}