mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-17 07:40:47 -08:00
Merge pull request #63 from engblom/disabledp-fix
Fix problem with disabledp
This commit is contained in:
commit
963ef3091b
1 changed files with 3 additions and 1 deletions
|
|
@ -166,7 +166,9 @@ CLOG-OBJ"))
|
||||||
(:documentation "Set editable VALUE for CLOG-BUTTON"))
|
(:documentation "Set editable VALUE for CLOG-BUTTON"))
|
||||||
|
|
||||||
(defmethod set-disabledp ((obj clog-button) value)
|
(defmethod set-disabledp ((obj clog-button) value)
|
||||||
(setf (property obj "disabled") (p-true-js value)))
|
(if value
|
||||||
|
(setf (property obj "disabled") (p-true-js value))
|
||||||
|
(remove-attribute obj "disabled")))
|
||||||
(defsetf disabledp set-editable)
|
(defsetf disabledp set-editable)
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue