Update Session->Style setScript to default to text/javascript. Update the entire codebase to take advantage of it.
This commit is contained in:
parent
808f38b2a6
commit
3fbc109429
53 changed files with 254 additions and 352 deletions
|
|
@ -156,8 +156,8 @@ sub toHtml {
|
|||
|
||||
if ($self->get("resizable")) {
|
||||
$style->setLink($url->extras("yui/build/resize/assets/skins/sam/resize.css"), {type=>"text/css", rel=>"stylesheet"});
|
||||
$style->setScript($url->extras("yui/build/utilities/utilities.js"), {type=>"text/javascript"});
|
||||
$style->setScript($url->extras("yui/build/resize/resize-min.js"), {type=>"text/javascript"});
|
||||
$style->setScript($url->extras("yui/build/utilities/utilities.js"));
|
||||
$style->setScript($url->extras("yui/build/resize/resize-min.js"));
|
||||
$out = sprintf <<'END_HTML', $self->get('id'), $out, $sizeStyle;
|
||||
<div id="%1$s_resizewrapper" style="padding-right: 6px; padding-bottom: 6px; %3$s">%2$s</div>
|
||||
<script type="text/javascript">
|
||||
|
|
@ -173,17 +173,11 @@ sub toHtml {
|
|||
END_HTML
|
||||
}
|
||||
elsif ($self->get('maxlength')) {
|
||||
$style->setScript(
|
||||
$url->extras( 'yui/build/yahoo-dom-event/yahoo-dom-event.js' ),
|
||||
{ type => 'text/javascript' },
|
||||
);
|
||||
$style->setScript( $url->extras( 'yui/build/yahoo-dom-event/yahoo-dom-event.js' ));
|
||||
}
|
||||
if ($self->get('maxlength')) {
|
||||
# Add the maxlength script
|
||||
$style->setScript(
|
||||
$url->extras( 'yui-webgui/build/form/textarea.js' ),
|
||||
{ type => 'text/javascript' },
|
||||
);
|
||||
$style->setScript( $url->extras( 'yui-webgui/build/form/textarea.js' ));
|
||||
}
|
||||
return $out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue