http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88460

Revision: 88460
Author:   yaron
Date:     2011-05-20 15:55:41 +0000 (Fri, 20 May 2011)
Log Message:
-----------
Removed setting of height and width for 'free text' textarea - that's handled 
by the form input

Modified Paths:
--------------
    trunk/extensions/SemanticForms/includes/SF_FormPrinter.php

Modified: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_FormPrinter.php  2011-05-20 
15:53:55 UTC (rev 88459)
+++ trunk/extensions/SemanticForms/includes/SF_FormPrinter.php  2011-05-20 
15:55:41 UTC (rev 88460)
@@ -823,10 +823,6 @@
                                                if ( $is_hidden ) {
                                                        $new_text = 
SFFormUtils::hiddenFieldHTML( 'free_text', '!free_text!' );
                                                } else {
-                                                       if ( ! 
array_key_exists( 'rows', $field_args ) )
-                                                               
$field_args['rows'] = 5;
-                                                       if ( ! 
array_key_exists( 'cols', $field_args ) )
-                                                               
$field_args['cols'] = 80;
                                                        $sfgTabIndex++;
                                                        $sfgFieldNum++;
                                                        if ( $cur_value == '' ) 
{
@@ -1414,13 +1410,14 @@
                        $form_page_title = null;
                }
 
-               // If the form has already been submitted, i.e. this is just 
the redirect
-               // page, get rid of all the Javascript, to avoid JS errors.
+               // If the form has already been submitted, i.e. this is just
+               // the redirect page, get rid of all the Javascript, to avoid
+               // JS errors.
                if ( $form_submitted ) {
                        $javascript_text = '';
                }
 
-               $wgOut -> addParserOutputNoText( $parser->getOutput() );
+               $wgOut->addParserOutputNoText( $parser->getOutput() );
 
                wfProfileOut( __METHOD__ );
 


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to