- Fixed a problem with IE and resizable text areas that caused IE to crash

when loading edit screens.
 - Fixed a problem with the new autocommit code that caused reply posts not to
   work in the collaboration system.
This commit is contained in:
JT Smith 2006-12-07 16:54:01 +00:00
parent dd5b0d9fe9
commit fe302de9d0
3 changed files with 18 additions and 3 deletions

View file

@ -124,8 +124,10 @@ sub toHtml {
$style->setLink($url->extras("yui-ext/resources/css/resizable.css"), {type=>"text/css", rel=>"stylesheet"});
$out .= qq|
<script type="text/javascript">
var draggable_textarea = document.getElementById('|.$self->get('id').qq|_wrapper');
window.setTimeout("draggable_textarea.resize = new YAHOO.ext.Resizable(draggable_textarea, {resizeChild: true, minWidth:300, minHeight:150, disableTrackOver:true, multiDirectional: false})",1);
YAHOO.util.Event.addListener(window, 'load', function () {
var draggable_textarea = document.getElementById('|.$self->get('id').qq|_wrapper');
draggable_textarea.resize = new YAHOO.ext.Resizable(draggable_textarea, {resizeChild: true, minWidth:300, minHeight:150, disableTrackOver:true, multiDirectional: false});
});
</script>
|;
}