Fix a bad script link in the JsonTable. Fixes bug #12202.
This commit is contained in:
parent
50ddc03cd8
commit
4aeb70d323
2 changed files with 22 additions and 0 deletions
|
|
@ -4,6 +4,7 @@
|
|||
- added the optional WebGUI::Content::PDFGenerator, not enabled by default
|
||||
(see the module's documentation).
|
||||
- fixed #12204: Default forum notification template produces invalid HTML
|
||||
- fixed #12202: JsonTable refers to unexistent YUI file
|
||||
|
||||
7.10.20
|
||||
- fixed: Do not call group methods on an undefined value.
|
||||
|
|
|
|||
|
|
@ -229,6 +229,27 @@ sub toHtml {
|
|||
$output .= '<input type="hidden" name="' . $self->get('name') . '" value="' . $value . '" />';
|
||||
|
||||
# Existing rows are entirely built in javascript from the JSON in the hidden field
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
$style->setScript(
|
||||
$url->extras('yui/build/connection/connection-min.js'),
|
||||
{ type => 'text/javascript' },
|
||||
);
|
||||
$style->setScript(
|
||||
$url->extras('yui/build/yahoo-dom-event/yahoo-dom-event.js'),
|
||||
{ type => 'text/javascript' },
|
||||
);
|
||||
$style->setScript(
|
||||
$url->extras('yui/build/json/json-min.js'),
|
||||
{ type => 'text/javascript' },
|
||||
);
|
||||
$style->setScript(
|
||||
$url->extras('yui-webgui/build/i18n/i18n.js'),
|
||||
{ type => 'text/javascript' },
|
||||
);
|
||||
$output .= sprintf '<script src="%s" type="text/javascript"></script>',
|
||||
$url->extras('yui-webgui/build/form/jsontable.js');
|
||||
>>>>>>> 7d20406... Fix a bad script link in the JsonTable. Fixes bug #12202.
|
||||
$output .= '<script type="text/javascript">'
|
||||
. q{new WebGUI.Form.JsonTable("} . $self->get('name') . q{","} . $self->get( 'id' ) . q{", }
|
||||
. JSON->new->encode( $self->get('fields') ) . q{ );}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue