Fix rendering of initial DataTable in IE7, IE8. Fixes bug #11205.

Added TR, TD tags to table containing the DataTable.  Also,
ran dataTable.js through jslint and fixed many issues.
This commit is contained in:
Colin Kuskie 2009-11-09 16:49:10 -08:00
parent ec30672d9e
commit 9d14e8b420
3 changed files with 12 additions and 9 deletions

View file

@ -125,7 +125,7 @@ sub getDataTemplateVars {
my $self = shift;
my $json = $self->getDataJson;
my $dt = JSON->new->decode($json);
my $dt = eval { JSON->new->decode($json) };
# Make row data more friendly to templates
my %cols = map { $_->{key} => $_ } @{ $dt->{columns} };
@ -154,7 +154,8 @@ sub getEditForm {
my $tabform = $self->SUPER::getEditForm(@_);
$tabform->getTab("data")->raw(
WebGUI::Form::DataTable->new(
q{<tr><td>}
. WebGUI::Form::DataTable->new(
$self->session, {
name => "data",
value => $self->get("data"),
@ -162,6 +163,7 @@ sub getEditForm {
showEdit => 1,
}
)->toHtml
. q{</td></tr>}
);
return $tabform;