http://www.mediawiki.org/wiki/Special:Code/MediaWiki/83615
Revision: 83615 Author: yaron Date: 2011-03-09 23:24:37 +0000 (Wed, 09 Mar 2011) Log Message: ----------- Fixed handling so that manually setting input type to 'text' or 'textarea' disables autocompletion 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-03-09 22:56:06 UTC (rev 83614) +++ trunk/extensions/SemanticForms/includes/SF_FormPrinter.php 2011-03-09 23:24:37 UTC (rev 83615) @@ -764,6 +764,12 @@ if ( $input_type == 'datetime with timezone' ) { $input_type = 'datetime'; $field_args['include timezone'] = true; + } elseif ( $input_type == 'text' || $input_type == 'textarea' ) { + // Also for backwards compatibility, + // in that once b/c goes away, + // this will no longer be + // necessary. + $field_args['no autocomplete'] = true; } if ( $allow_multiple ) $field_args['part_of_multiple'] = $allow_multiple; _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs