summaryrefslogtreecommitdiff
path: root/system/admin/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r--system/admin/handlers.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go
index a585faa..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');
@@ -1531,7 +1536,7 @@ func editHandler(res http.ResponseWriter, req *http.Request) {
// create a timestamp if one was not set
if ts == "" {
- ts = fmt.Sprintf("%d", int64(time.Nanosecond)*time.Now().UnixNano()/int64(time.Millisecond))
+ ts = fmt.Sprintf("%d", int64(time.Nanosecond)*time.Now().UTC().UnixNano()/int64(time.Millisecond))
req.PostForm.Set("timestamp", ts)
}