From b36422bc05d25732605ff963a830e0a196047697 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sun, 1 Aug 2021 19:54:42 +0200 Subject: [PATCH] Update list/grid button action (reverse proxy problem) --- cps/static/js/main.js | 2 +- cps/templates/grid.html | 3 +-- cps/templates/list.html | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cps/static/js/main.js b/cps/static/js/main.js index 8a31c18c..fe8b498d 100644 --- a/cps/static/js/main.js +++ b/cps/static/js/main.js @@ -706,7 +706,7 @@ $(function() { method:"post", contentType: "application/json; charset=utf-8", dataType: "json", - url: window.location.pathname + "/../../ajax/view", + url: window.location.pathname + "/../ajax/view", data: "{\"series\": {\"series_view\": \""+ view +"\"}}", success: function success() { location.reload(); diff --git a/cps/templates/grid.html b/cps/templates/grid.html index f8beffc5..88421c06 100644 --- a/cps/templates/grid.html +++ b/cps/templates/grid.html @@ -18,8 +18,7 @@ {% endfor %} - - + {% if entries[0] %} diff --git a/cps/templates/list.html b/cps/templates/list.html index c68bda10..599b330b 100644 --- a/cps/templates/list.html +++ b/cps/templates/list.html @@ -20,7 +20,7 @@ {% if data == "series" %} - + {% endif %}