http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97457
Revision: 97457
Author: yaron
Date: 2011-09-19 06:49:51 +0000 (Mon, 19 Sep 2011)
Log Message:
-----------
Input type dropdown for 'edit schema' can now accept a blank value
Modified Paths:
--------------
trunk/extensions/SemanticForms/includes/SF_PageSchemas.php
Modified: trunk/extensions/SemanticForms/includes/SF_PageSchemas.php
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_PageSchemas.php 2011-09-19
06:48:43 UTC (rev 97456)
+++ trunk/extensions/SemanticForms/includes/SF_PageSchemas.php 2011-09-19
06:49:51 UTC (rev 97457)
@@ -172,7 +172,7 @@
global $sfgFormPrinter;
$possibleInputTypes = $sfgFormPrinter->getAllInputTypes();
- $inputTypeDropdownHTML = '';
+ $inputTypeDropdownHTML = Html::element( 'option', null, null );
foreach ( $possibleInputTypes as $possibleInputType ) {
$inputTypeOptionAttrs = array();
if ( $possibleInputType == $inputType ) {
@@ -181,7 +181,7 @@
$inputTypeDropdownHTML .= Html::element( 'option',
$inputTypeOptionAttrs, $possibleInputType ) . "\n";
}
$inputTypeDropdown = Html::rawElement( 'select', array( 'name'
=> 'sf_input_type_num' ), $inputTypeDropdownHTML );
- $text = '<p>' . wfMsg( 'sf_createform_inputtype' ) . ' ' .
$inputTypeDropdown . '</p>';
+ $text = '<p>' . wfMsg( 'sf-pageschemas-inputtype' ) . ' ' .
$inputTypeDropdown . '</p>';
$text .= "\t" . '<p>Enter parameter names and their values as
key=value pairs, separated by commas (if a value contains a comma, replace it
with "\,") For example: size=20, mandatory</p>' . "\n";
$paramValues = array();
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs