summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/basetable_bottom.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/basetable_bottom.html15
1 files changed, 12 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html
index ac14363798..cbdc164273 100644
--- a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html
+++ b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html
@@ -26,7 +26,7 @@
26 <span class="help-inline" style="padding-top:5px;">Show rows:</span> 26 <span class="help-inline" style="padding-top:5px;">Show rows:</span>
27 <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> 27 <select style="margin-top:5px;margin-bottom:0px;" class="pagesize">
28 {% with "2 5 10 25 50 100" as list%} 28 {% with "2 5 10 25 50 100" as list%}
29 {% for i in list.split %}<option{%if i == request.GET.count %} selected{%endif%}>{{i}}</option> 29 {% for i in list.split %}<option value="{{i}}">{{i}}</option>
30 {% endfor %} 30 {% endfor %}
31 {% endwith %} 31 {% endwith %}
32 </select> 32 </select>
@@ -56,6 +56,14 @@
56 } 56 }
57 } 57 }
58 58
59 // load cookie for number of entries to be displayed on page
60 pagesize = $.cookie('count');
61 if (!pagesize)
62 pagesize = 10;
63 $('.pagesize option').prop('selected', false)
64 .filter('[value="' + pagesize + '"]')
65 .attr('selected', true);
66
59 $('.chbxtoggle').each(function () { 67 $('.chbxtoggle').each(function () {
60 showhideTableColumn($(this).attr('id'), $(this).is(':checked')) 68 showhideTableColumn($(this).attr('id'), $(this).is(':checked'))
61 }); 69 });
@@ -72,8 +80,9 @@
72 $('.progress, .lead span').tooltip({container:'table', placement:'top'}); 80 $('.progress, .lead span').tooltip({container:'table', placement:'top'});
73 81
74 $(".pagesize").change(function () { 82 $(".pagesize").change(function () {
75 console.log("page size change"); 83 reload_params({"count":$(this).val()});
76 reload_params({"count":$(this).val()}); ; 84 // save cookie with pagesize
85 $.cookie("count", $(this).val(), { path : $(location).attr('pathname') });
77 }); 86 });
78}); 87});
79</script> 88</script>