diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-10-02 17:58:15 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-12 17:04:48 +0000 |
commit | 42afeb422ea0a5e226cef586353d194d0339bbd7 (patch) | |
tree | 86bc1c6716b6b60bb4f77ebd9fa9d044da0daf7a /bitbake/lib/toaster/toastergui/templates/basetable_bottom.html | |
parent | 46f1fbe3abb3677861178b7008bf5edf73125197 (diff) | |
download | poky-42afeb422ea0a5e226cef586353d194d0339bbd7.tar.gz |
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 <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/basetable_bottom.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/basetable_bottom.html | 13 |
1 files changed, 8 insertions, 5 deletions
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 @@ | |||
58 | } | 58 | } |
59 | 59 | ||
60 | // load cookie for number of entries to be displayed on page | 60 | // load cookie for number of entries to be displayed on page |
61 | pagesize = $.cookie('count'); | 61 | if ({{request.GET.count}} != "") { |
62 | if (!pagesize) | 62 | pagesize = {{request.GET.count}}; |
63 | pagesize = 10; | 63 | } else { |
64 | pagesize = $.cookie('_count'); | ||
65 | } | ||
66 | |||
64 | $('.pagesize option').prop('selected', false) | 67 | $('.pagesize option').prop('selected', false) |
65 | .filter('[value="' + pagesize + '"]') | 68 | .filter('[value="' + pagesize + '"]') |
66 | .attr('selected', true); | 69 | .attr('selected', true); |
@@ -81,9 +84,9 @@ | |||
81 | $('.progress, .lead span').tooltip({container:'table', placement:'top'}); | 84 | $('.progress, .lead span').tooltip({container:'table', placement:'top'}); |
82 | 85 | ||
83 | $(".pagesize").change(function () { | 86 | $(".pagesize").change(function () { |
84 | reload_params({"count":$(this).val()}); | ||
85 | // save cookie with pagesize | 87 | // save cookie with pagesize |
86 | $.cookie("count", $(this).val(), { path : $(location).attr('pathname') }); | 88 | $.cookie("_count", $(this).val(), { path : $(location).attr('pathname') }); |
89 | reload_params({"count":$(this).val()}); | ||
87 | }); | 90 | }); |
88 | }); | 91 | }); |
89 | </script> | 92 | </script> |