mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Sort links remove _next=, closes #989
This commit is contained in:
parent
b68cc1c6d4
commit
e807c4eac0
1 changed files with 2 additions and 0 deletions
|
|
@ -29,12 +29,14 @@ var DROPDOWN_ICON_SVG = `<svg xmlns="http://www.w3.org/2000/svg" width="14" heig
|
|||
var params = getParams();
|
||||
params.set('_sort_desc', column);
|
||||
params.delete('_sort');
|
||||
params.delete('_next');
|
||||
return paramsToUrl(params);
|
||||
}
|
||||
function sortAscUrl(column) {
|
||||
var params = getParams();
|
||||
params.set('_sort', column);
|
||||
params.delete('_sort_desc');
|
||||
params.delete('_next');
|
||||
return paramsToUrl(params);
|
||||
}
|
||||
function facetUrl(column) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue