mention code source
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
;;; SUrflets' input fields
|
||||
;;; Copyright 2002, 2003 Andreas Bernauer
|
||||
;;; With additions from Eric Knauel (2003)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Functions to create simple input fields
|
||||
@@ -492,6 +493,9 @@
|
||||
#f `(@ (src ,image-source)
|
||||
,@(sxml-attribute-attributes attributes)))))
|
||||
|
||||
;; Image buttons cannot be simple buttons, as the browser does not
|
||||
;; send their simple name, but the coordinates where the user clicked
|
||||
;; into. Thanks to Eric Knauel for reporting this bug.
|
||||
(define (make-image-button image-source . maybe-further-attributes)
|
||||
(optionals maybe-further-attributes
|
||||
((attributes sxml-attribute?))
|
||||
@@ -503,6 +507,8 @@
|
||||
(sxml-attribute-attributes attributes))
|
||||
make-button-html-tree)))
|
||||
|
||||
;; The following two functions are from Eric Knauel's fix for the
|
||||
;; image-button bug:
|
||||
(define (image-button-transformer image-button bindings)
|
||||
(let ((x (find-image-button-coordinate image-button bindings ".x"))
|
||||
(y (find-image-button-coordinate image-button bindings ".y")))
|
||||
|
||||
Reference in New Issue
Block a user