##// END OF EJS Templates
Update markup a bit
naryl -
r68:b533adc9 default
parent child Browse files
Show More
@@ -21,11 +21,11 b''
21 "</a>"))
21 "</a>"))
22
22
23 (defun make-obj (title img selected)
23 (defun make-obj (title img selected)
24 (+ "<li onclick='" (inline-call select-obj title img) "'>"
24 (+ "<li onclick='" (inline-call select-obj title img)
25 "<a class='qsp-obj" (if selected " qsp-obj-selected" "") "'>"
25 "' class='qsp-obj" (if selected " selected" "") "'>"
26 (if img (+ "<img src='" img "'>") "")
26 (if img (+ "<img src='" img "'>") "")
27 title
27 title
28 "</a>"))
28 "</li>"))
29
29
30 (defun make-menu-delimiter ()
30 (defun make-menu-delimiter ()
31 "<hr>")
31 "<hr>")
@@ -298,12 +298,11 b''
298 (call-serv-loc "$ONOBJSEL" title img))
298 (call-serv-loc "$ONOBJSEL" title img))
299
299
300 (defun update-objs ()
300 (defun update-objs ()
301 (clear-id "qsp-objs")
301 (let ((elt (by-id "qsp-objs")))
302 (let ((elt (by-id "qsp-objs")))
302 (setf (inner-html elt) "<ul>")
303 (loop :for (name obj) :of *objs
303 (loop :for (name obj) :of *objs
304 :do (incf (inner-html elt)
304 :do (incf (inner-html elt)
305 (make-obj name (@ obj :img) (@ obj :selected))))
305 (make-obj name (@ obj :img) (@ obj :selected))))))
306 (incf (inner-html elt) "</ul>")))
307
306
308 ;;; Menu
307 ;;; Menu
309
308
General Comments 0
You need to be logged in to leave comments. Login now