diff options
author | Steve Manuel <nilslice@gmail.com> | 2016-10-30 23:38:11 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2016-10-30 23:38:11 -0700 |
commit | e747830167e22d97ea34969fab3cfe1c71c35f75 (patch) | |
tree | 340881ad490d7c2519698dc486fab99e3e76c38a /system/admin/handlers.go | |
parent | dd4a88bed52b6127503824218fb97645d44e1a7d (diff) |
pulling getParam into utils file
Diffstat (limited to 'system/admin/handlers.go')
-rw-r--r-- | system/admin/handlers.go | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/system/admin/handlers.go b/system/admin/handlers.go index 4a0453d..84f047c 100644 --- a/system/admin/handlers.go +++ b/system/admin/handlers.go @@ -585,21 +585,6 @@ func postsHandler(res http.ResponseWriter, req *http.Request) { </div> <script> $(function() { - var getParam = function(param) { - var qs = window.location.search.substring(1); - var qp = qs.split('&'); - var t = ''; - - for (var i = 0; i < qp.length; i++) { - var p = qp[i].split('=') - if (p[0] === param) { - t = p[1]; - } - } - - return t; - } - var sort = $('select.__ponzu.sort-order'); sort.on('change', function() { |