mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-21 13:52:30 +02:00
Reverse test condition to avoid redirects with change details
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user