mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-09 12:20:27 -08:00
better handling of multile styles
This commit is contained in:
parent
80af6cc5d2
commit
a3b9f73fba
1 changed files with 8 additions and 9 deletions
|
|
@ -126,15 +126,14 @@ must be in DOM, ie placed or auto-placed."))
|
||||||
(:documentation "Set css styles using a list of list of name value pairs."))
|
(:documentation "Set css styles using a list of list of name value pairs."))
|
||||||
|
|
||||||
(defmethod set-styles ((obj clog-element) style-list)
|
(defmethod set-styles ((obj clog-element) style-list)
|
||||||
(jquery-execute obj (format nil "css({~{~A~}})"
|
(jquery-execute obj (format nil "css({~{~A~^,~}})"
|
||||||
(mapcar
|
(remove nil (mapcar
|
||||||
(lambda (n)
|
(lambda (n)
|
||||||
(if n
|
(when n
|
||||||
(format nil "'~A':'~A',"
|
(format nil "'~A':'~A'"
|
||||||
(first n)
|
(first n)
|
||||||
(second n))
|
(second n))))
|
||||||
""))
|
style-list)))))
|
||||||
style-list))))
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;
|
||||||
;; attribute ;;
|
;; attribute ;;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue