Render bucket listing

I'm pretty sure I had this working before...
master
Mil 3 years ago committed by 4903000
parent 401f404729
commit b2194e16d9

@ -172,10 +172,14 @@
(text (chain document (get-element-by-id "keyfield") value)))
(setf (getprop xhttp 'onreadystatechange)
(lambda ()
(and (= (getprop this 'ready-state) 4)
(= (getprop this 'status) 200)
(funcall (getprop console 'log) (getprop xhttp 'response-text)))
t)
(if (and (= (getprop this 'ready-state) 4)
(= (getprop this 'status) 200))
(progn
(funcall (getprop console 'log) (getprop xhttp 'response-text))
(setf (chain document (get-element-by-id "buckets")
inner-h-t-m-l)
(getprop xhttp 'response-text))
t)))
(getprop xhttp 'response-type) "text/plain")
(setf text (funcall (getprop text 'replace) (regex "/\\n/g") ","))
(funcall (getprop xhttp 'open) "POST" "/buckets/" t)
@ -184,7 +188,7 @@
(:body
(:form (:textarea :attrs (list :type "text" :id "keyfield"))
(:input :attrs (list :type "button" :value "send" :onclick "send()")))
(:ol (dolist (i dirs)
(:ol :attrs (list :id "buckets") (dolist (i dirs)
(:li (:a :attrs (list :href i) i))))))))))
(defun send-bucket-cookie (env)

Loading…
Cancel
Save