mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
bitbake: toasterui: replace cookie-based preferences with session data
We switch from storing the user preferences using cookies to saving them in the server-side session. Patch for "count/pagesize" and "orderby" fields in the table-based pages. This patch will solve two problems: * the browser-side race between the GET header data and the cookie data * page breakages when field names chances in orderby statements. (Bitbake rev: 125d0e05805247450be0675e281a21bd6146d108) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1b6a50c6b2
commit
fea4a82a2b
@@ -60,8 +60,6 @@
|
||||
// load cookie for number of entries to be displayed on page
|
||||
if ({{request.GET.count}} != "") {
|
||||
pagesize = {{request.GET.count}};
|
||||
} else {
|
||||
pagesize = $.cookie('_count');
|
||||
}
|
||||
|
||||
$('.pagesize option').prop('selected', false)
|
||||
@@ -84,8 +82,6 @@
|
||||
$('.progress, .lead span').tooltip({container:'table', placement:'top'});
|
||||
|
||||
$(".pagesize").change(function () {
|
||||
// save cookie with pagesize
|
||||
$.cookie("_count", $(this).val(), { path : $(location).attr('pathname') });
|
||||
reload_params({"count":$(this).val()});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user