Textarea now includes its js blurb only once.
This commit is contained in:
parent
7f7b85e06a
commit
7f4416aa65
2 changed files with 12 additions and 5 deletions
|
|
@ -9,6 +9,8 @@
|
|||
- rfe: added Asset History browser (perlDreamer Consulting, LLC and Plain Black)
|
||||
- fixed: Commit w/ approval workflow can crash under race conditions
|
||||
resulting in permanently locked content (Martin Kamerbeek / Oqapi )
|
||||
- fixed: Each textarea inserts identical JS that should be inserted only once
|
||||
( Martin Kamerbeek / Oqapi )
|
||||
|
||||
7.6.14
|
||||
- fixed: IE6 shows Admin Bar over Asset Manager
|
||||
|
|
|
|||
|
|
@ -159,11 +159,16 @@ sub toHtml {
|
|||
$url->extras( 'yui-webgui/build/form/textarea.js' ),
|
||||
{ type => 'text/javascript' },
|
||||
);
|
||||
$style->setRawHeadTags( q|
|
||||
<script type="text/javascript">
|
||||
YAHOO.util.Event.onDOMReady( function () { WebGUI.Form.Textarea.setMaxLength() } );
|
||||
</script>
|
||||
| );
|
||||
|
||||
unless ( $self->session->stow->get( 'texareaHeadTagsLoaded' ) ) {
|
||||
$style->setRawHeadTags( q|
|
||||
<script type="text/javascript">
|
||||
YAHOO.util.Event.onDOMReady( function () { WebGUI.Form.Textarea.setMaxLength() } );
|
||||
</script>
|
||||
| );
|
||||
|
||||
$self->session->stow->set( 'texareaHeadTagsLoaded', 1 )
|
||||
}
|
||||
|
||||
if ($self->get("resizable")) {
|
||||
$style->setLink($url->extras("resize.css"), {type=>"text/css", rel=>"stylesheet"});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue