Remove double definition of MAKE-IMAGE-BUTTON
This commit is contained in:
parent
e634526856
commit
44268c5c4a
|
@ -470,13 +470,6 @@
|
||||||
(make-button "reset" (generate-input-field-name "reset")
|
(make-button "reset" (generate-input-field-name "reset")
|
||||||
button-caption attributes)))
|
button-caption attributes)))
|
||||||
|
|
||||||
(define (make-image-button image-source . maybe-further-attributes)
|
|
||||||
(let-optionals maybe-further-attributes
|
|
||||||
((attributes '() sxml-attribute?))
|
|
||||||
(make-button "image" (generate-input-field-name "imgbtn")
|
|
||||||
#f `(@ (src ,image-source)
|
|
||||||
,@(sxml-attribute-attributes attributes)))))
|
|
||||||
|
|
||||||
;; Image buttons cannot be simple buttons, as the browser does not
|
;; Image buttons cannot be simple buttons, as the browser does not
|
||||||
;; send their simple name, but the coordinates where the user clicked
|
;; send their simple name, but the coordinates where the user clicked
|
||||||
;; into. Thanks to Eric Knauel for reporting this bug.
|
;; into. Thanks to Eric Knauel for reporting this bug.
|
||||||
|
|
Loading…
Reference in New Issue