r83615 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83614‎ | r83615 | r83616 >
Date:23:24, 9 March 2011
Author:yaron
Status:deferred
Tags:
Comment:
Fixed handling so that manually setting input type to 'text' or 'textarea' disables autocompletion
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_FormPrinter.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php
@@ -764,6 +764,12 @@
765765 if ( $input_type == 'datetime with timezone' ) {
766766 $input_type = 'datetime';
767767 $field_args['include timezone'] = true;
 768+ } elseif ( $input_type == 'text' || $input_type == 'textarea' ) {
 769+ // Also for backwards compatibility,
 770+ // in that once b/c goes away,
 771+ // this will no longer be
 772+ // necessary.
 773+ $field_args['no autocomplete'] = true;
768774 }
769775 if ( $allow_multiple )
770776 $field_args['part_of_multiple'] = $allow_multiple;