diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/basetable_bottom.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/basetable_bottom.html | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html index e6b9506281..d48ad92020 100644 --- a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html +++ b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html @@ -25,7 +25,7 @@ <div class="pull-right"> <span class="help-inline" style="padding-top:5px;">Show rows:</span> <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> - {% with "2 5 10 25 50 100" as list%} + {% with "10 25 50 100 150" as list%} {% for i in list.split %} <option value="{{i}}">{{i}}</option> {% endfor %} @@ -58,9 +58,12 @@ } // load cookie for number of entries to be displayed on page - pagesize = $.cookie('count'); - if (!pagesize) - pagesize = 10; + if ({{request.GET.count}} != "") { + pagesize = {{request.GET.count}}; + } else { + pagesize = $.cookie('_count'); + } + $('.pagesize option').prop('selected', false) .filter('[value="' + pagesize + '"]') .attr('selected', true); @@ -81,9 +84,9 @@ $('.progress, .lead span').tooltip({container:'table', placement:'top'}); $(".pagesize").change(function () { - reload_params({"count":$(this).val()}); // save cookie with pagesize - $.cookie("count", $(this).val(), { path : $(location).attr('pathname') }); + $.cookie("_count", $(this).val(), { path : $(location).attr('pathname') }); + reload_params({"count":$(this).val()}); }); }); </script> |