diff --git a/archivebox/themes/admin/base.html b/archivebox/themes/admin/base.html index 5b83cc7a..00dfec45 100644 --- a/archivebox/themes/admin/base.html +++ b/archivebox/themes/admin/base.html @@ -202,12 +202,16 @@ function setPreferredSnapshotView(view){ urlPath = window.location.pathname; - if((view==="Grid") && urlPath != "{% url 'admin:grid' %}"){ + if((view==="Grid") && urlPath == "{% url 'admin:core_snapshot_changelist' %}"){ selectSnapshotGridView(); } - else if((view==="List") && urlPath != "{% url 'admin:core_snapshot_changelist' %}"){ + + {% comment %} + else if((view==="List") && urlPath == "{% url 'admin:grid' %}"){ selectSnapshotListView(); - } + + } + {% endcomment %} }; function setupSnapshotViews() {