Author: spadkins
Date: Wed Aug 8 11:45:24 2007
New Revision: 9832
Modified:
p5ee/trunk/App-Widget/lib/App/Widget/Label.pm
Log:
Added tag_class and getElementById
Modified: p5ee/trunk/App-Widget/lib/App/Widget/Label.pm
==============================================================================
--- p5ee/trunk/App-Widget/lib/App/Widget/Label.pm (original)
+++ p5ee/trunk/App-Widget/lib/App/Widget/Label.pm Wed Aug 8 11:45:24 2007
@@ -96,6 +96,8 @@
if ($self->{event}) {
$text = $self->{values};
+ my $tag_class = $self->{tag_class};
+
my (@args);
my $args = $self->{event_args};
if ($args) {
@@ -107,11 +109,12 @@
}
}
my $name = $self->{name};
- my $event = "$name.$self->{event}";
+ my $event_name = $self->{event_name} || $name;
+ my $event = "$event_name.$self->{event}";
if ($#args > -1) {
$event .= "(" . join(",", @args) . ")";
}
- $html = "<a class=\"App-Label\" id=\"$name\" onclick=\"f=document.forms[0]; e=f['app.event']; e.value = '$event'; f.submit(); e.value = ''; return(0);\">$text</a>";
+ $html = "<a class=\"$tag_class\" id=\"$name\" onclick=\"f=document.forms[0]; e=getElementById('app-event-aux'); e.value = '$event'; f.submit(); e.value = ''; return(0);\">$text</a>";
}
else {
$html = $text;
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.