From 42afeb422ea0a5e226cef586353d194d0339bbd7 Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Thu, 2 Oct 2014 17:58:15 +0100 Subject: bitbake: toastergui: Various fixes for projects, layers and targets page This is a combined set of fixes for the project, layers and targets pages in the project section of toaster. The fixes correct behaviour and look in various parts of the page, including submitting XHR commands and updating the DOM with the correct info. (Bitbake rev: 96d7738f964784871c928c376cb9fbc9a275cf00) Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- .../lib/toaster/toastergui/templates/basetable_bottom.html | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates/basetable_bottom.html') diff --git a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html index 091e11a51e..d48ad92020 100644 --- a/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html +++ b/bitbake/lib/toaster/toastergui/templates/basetable_bottom.html @@ -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()}); }); }); -- cgit v1.2.3-54-g00ecf