Browse Source

! Unbreak something else.

Peter Spicer 10 years ago
parent
commit
4f807d11a0
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Themes/default/Admin.template.php

+ 2 - 1
Themes/default/Admin.template.php

@@ -894,9 +894,10 @@ function template_show_settings()
 				{
 					// Figure out the exact type - use "number" for "float" and "int".
 					$type = in_array($config_var['type'], $text_types) ? $config_var['type'] : ($config_var['type'] == 'int' || $config_var['type'] == 'float' ? 'number' : 'text');
+					$step = $config_var['type'] == 'float' ? ' step="0.1"' : '';
 
 					echo '
-											<input type="', $type ,'"', $javascript, $disabled, ' name="', $config_var['name'], '" id="', $config_var['name'], '" value="', $config_var['value'], '"', ($config_var['size'] ? ' size="' . $config_var['size'] . '"' : ''), ' class="input_text">';
+											<input type="', $type ,'"', $javascript, $disabled, ' name="', $config_var['name'], '" id="', $config_var['name'], '" value="', $config_var['value'], '"', ($config_var['size'] ? ' size="' . $config_var['size'] . '"' : ''), ' class="input_text"', $step, '>';
 				}
 
 				echo isset($config_var['postinput']) ? '