mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
/browse: Make the sort cookies session cookies and remove formats and sort from list of sortable fields
This commit is contained in:
parent
7f3212585a
commit
40d35ff9f7
@ -55,7 +55,7 @@ function init_sort_combobox() {
|
||||
selectedList: 1,
|
||||
click: function(event, ui){
|
||||
$(this).multiselect("close");
|
||||
cookie(sort_cookie_name, ui.value, {expires: 365});
|
||||
cookie(sort_cookie_name, ui.value);
|
||||
window.location.reload();
|
||||
}
|
||||
});
|
||||
|
@ -221,7 +221,7 @@ class BrowseServer(object):
|
||||
sort_opts, added = [], set([])
|
||||
displayed_custom_fields = custom_fields_to_display(self.db)
|
||||
for x in fm.sortable_field_keys():
|
||||
if x == 'ondevice':
|
||||
if x in ('ondevice', 'formats', 'sort'):
|
||||
continue
|
||||
if fm[x]['is_custom'] and x not in displayed_custom_fields:
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user