mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
:checkbox, :email and other text based inputs support for form-dialog
This commit is contained in:
parent
d16f17d0d7
commit
61853feccb
4 changed files with 39 additions and 4 deletions
|
|
@ -382,6 +382,19 @@ group called NAME."))
|
|||
(cc:query (connection-id obj)
|
||||
(format nil "$('input:radio[name=~A]:checked').val()"
|
||||
name)))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;
|
||||
;; checkbox-value ;;
|
||||
;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(defgeneric checkbox-value (clog-obj name)
|
||||
(:documentation "Returns t or nil on the selected checkbox button."))
|
||||
|
||||
(defmethod checkbox-value ((obj clog-obj) name)
|
||||
(js-on-p (cc:query (connection-id obj)
|
||||
(format nil "$('input:checkbox[name=~A]:checked').val()"
|
||||
name))))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;
|
||||
;; select-value ;;
|
||||
;;;;;;;;;;;;;;;;;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue