mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -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."))
|
||||
|
||||
(defmethod set-styles ((obj clog-element) style-list)
|
||||
(jquery-execute obj (format nil "css({~{~A~}})"
|
||||
(mapcar
|
||||
(lambda (n)
|
||||
(if n
|
||||
(format nil "'~A':'~A',"
|
||||
(first n)
|
||||
(second n))
|
||||
""))
|
||||
style-list))))
|
||||
(jquery-execute obj (format nil "css({~{~A~^,~}})"
|
||||
(remove nil (mapcar
|
||||
(lambda (n)
|
||||
(when n
|
||||
(format nil "'~A':'~A'"
|
||||
(first n)
|
||||
(second n))))
|
||||
style-list)))))
|
||||
|
||||
;;;;;;;;;;;;;;;
|
||||
;; attribute ;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue