Internal javascript style storage changed from array to hash.

This broke the getUserPrefsForm for dashboards.  Fix this so
that js'es are added again.
This commit is contained in:
Colin Kuskie 2006-07-12 21:22:41 +00:00
parent 1a6c59230d
commit 7e2efccc86

View file

@ -707,14 +707,7 @@ sub www_getUserPrefsForm {
}
$f->submit({extras=>'className="nothing"'});
$f->raw('</table>');
my $tags;
foreach my $tag (@{$self->session->style->{_javascript}}) {
$tags .= '<script';
foreach my $name (keys %{$tag}) {
$tags .= ' '.$name.'="'.$tag->{$name}.'"';
}
$tags .= '></script>'."\n";
}
my $tags = join "", values %{ $self->session->style->{_javascript} };
$output .= $tags.$f->print;
return $output;
}