From faf4c67abcc5211e7b5ff45e908fa8a787bdaff2 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Mon, 3 Apr 2017 13:07:42 -0700 Subject: move iterator to suffix of key to avoid clashing, include status in UI sort --- system/admin/handlers.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'system/admin') diff --git a/system/admin/handlers.go b/system/admin/handlers.go index d04adec..c2d67e9 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -941,8 +941,13 @@ func contentsHandler(res http.ResponseWriter, req *http.Request) { var path = window.location.pathname; var s = sort.val(); var t = getParam('type'); + var status = getParam('status'); - window.location.replace(path + '?type=' + t + '&order=' + s) + if (status == "") { + status = "public"; + } + + window.location.replace(path + '?type=' + t + '&order=' + s + '&status=' + status); }); var order = getParam('order'); -- cgit v1.2.3