Roxen.git/
server/
modules/
graphics/
gbutton.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2000-03-24
2000-03-24 09:00:37 by Marcus Wellhardh <wellhard@roxen.com>
407b8250cebc1c40ba7f1b4a9aca2a701f7c4b90 (
10
lines) (+
9
/-
1
)
[
Show
|
Annotate
]
Branch:
5.2
Added onClick to args transfer for link.
Rev: server/modules/graphics/gbutton.pike:1.40
25:
// must also be aligned left or right.
-
constant cvs_version = "$Id: gbutton.pike,v 1.
39
2000/03/
16
17
:
30
:
24
nilsson
Exp $";
+
constant cvs_version = "$Id: gbutton.pike,v 1.
40
2000/03/
24
09
:
00
:
37
wellhard
Exp $";
constant thread_safe = 1; #include <module.h>
565:
mapping a_attrs = ([ "href" : args->href ]); if (args->target) a_attrs->target = args->target;
+
+
if (args->onClick)
+
a_attrs->onClick = args->onClick;
+
+
if (args->onclick)
+
a_attrs->onclick = args->onclick;
+
result=make_container("a", a_attrs, make_tag("img", img_attrs)); } else result=make_tag("img", img_attrs);