Roxen.git/
server/
modules/
graphics/
gbutton.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1999-11-16
1999-11-16 13:53:02 by 0
da94fd36c54bdd3ed34570c0092694692fd7a65a (
13
lines) (+
8
/-
5
)
[
Show
|
Annotate
]
Branch:
5.2
Yet another <img> attribute needed by SiteBuilder...
Rev: server/modules/graphics/gbutton.pike:1.6
25:
// must also be aligned left or right.
-
constant cvs_version = "$Id: gbutton.pike,v 1.
5
1999/11/16
11
:
01
:
13
jonasw Exp $";
+
constant cvs_version = "$Id: gbutton.pike,v 1.
6
1999/11/16
13
:
53
:
02
jonasw Exp $";
constant thread_safe = 1; #include <module.h>
298:
} // Make button clickable if not dimmed
-
if (args->href && !new_args->dim)
-
return
make_container("
a
",
([ "href" : args->href ])
,
-
make_tag("img", img_attrs));
-
else
+
if (args->href && !new_args->dim)
{
+
mapping
a
_
attrs
=
([ "href" : args->href ])
;
+
if
(args->target)
+
a_attrs->target
=
args->target;
+
return
make_container("a",
a_attrs,
make_tag("img", img_attrs));
+
}
else
return make_tag("img", img_attrs); }