mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-15 07:34:27 -04:00
use localStorage var
This commit is contained in:
parent
8fca36a7cd
commit
d4255be077
1 changed files with 2 additions and 3 deletions
|
@ -190,12 +190,12 @@
|
|||
};
|
||||
|
||||
function selectSnapshotListView(){
|
||||
myStorage.setItem('currentSnapshotView', 'List');
|
||||
localStorage.setItem('currentSnapshotView', 'List');
|
||||
redirectWithQuery("{% url 'admin:core_snapshot_changelist' %}");
|
||||
};
|
||||
|
||||
function selectSnapshotGridView(){
|
||||
myStorage.setItem('currentSnapshotView', 'Grid');
|
||||
localStorage.setItem('currentSnapshotView', 'Grid');
|
||||
redirectWithQuery("{% url 'admin:grid' %}");
|
||||
};
|
||||
|
||||
|
@ -211,7 +211,6 @@
|
|||
};
|
||||
|
||||
function setupSnapshotViews() {
|
||||
myStorage = window.localStorage;
|
||||
const preferredSnapshotView = localStorage.getItem('currentSnapshotView');
|
||||
setPreferredSnapshotView(preferredSnapshotView);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue