1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-29 21:24:44 +03:00

This is a numeric field

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
This commit is contained in:
Madhura Jayaratne
2015-04-24 22:41:35 +05:30
parent 85064d4ae3
commit eb3c00dfcb
2 changed files with 4 additions and 4 deletions

View File

@@ -185,8 +185,8 @@ function PMA_getHtmlForTableNameAndNoOfColumns()
. '</td>'
. '<td>';
$html .= sprintf(
__('Add %s column(s)'), '<input type="text" id="added_fields" '
. 'name="added_fields" size="2" value="1" onfocus="this.select'
__('Add %s column(s)'), '<input type="number" id="added_fields" '
. 'name="added_fields" size="2" value="1" min="1" onfocus="this.select'
. '()" />'
);

View File

@@ -231,8 +231,8 @@ class PMA_TblColumnsDefinitionFormTest extends PHPUnit_Framework_TestCase
$this->assertTag(
PMA_getTagArray(
'<input type="text" id="added_fields" name="added_fields" '
. 'size="2" value="1" onfocus="this.select()"'
'<input type="number" id="added_fields" name="added_fields" '
. 'size="2" value="1" min="1" onfocus="this.select()"'
),
$result
);