1
0
Fork 0
mirror of synced 2024-06-17 18:04:33 +12:00

Reverse test condition to avoid redirects with change details

This commit is contained in:
jdcaballerov 2020-12-14 13:27:06 -05:00
parent d4255be077
commit 45e97ea278

View file

@ -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() {