[TASK] Change input type for backend search result limit to "number" 04/32904/3
authorIngo Pfennigstorf <i.pfennigstorf@gmail.com>
Sun, 21 Sep 2014 18:24:58 +0000 (20:24 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 24 Sep 2014 12:26:50 +0000 (14:26 +0200)
This changes the html input type for the backend search result limit
from "text" to the html5 attribute "number".

Releases: master
Resolves: #61778
Change-Id: I28aac40a61e6d6499cd6aa72beda5bb765c25d01
Reviewed-on: http://review.typo3.org/32904
Reviewed-by: Stefan Froemken <froemken@gmail.com>
Tested-by: Stefan Froemken <froemken@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/recordlist/Classes/RecordList/AbstractDatabaseRecordList.php

index 5375f6c..85c0b1b 100644 (file)
@@ -477,7 +477,7 @@ class AbstractDatabaseRecordList extends \TYPO3\CMS\Backend\RecordList\AbstractR
                                        </tr>
                                        <tr>
                                                <td><label for="showLimit">' . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xlf:labels.showRecords', TRUE) . ':</label></td>
-                                               <td colspan="3"><input type="text" name="showLimit" id="showLimit" value="' . htmlspecialchars(($this->showLimit ? $this->showLimit : '')) . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(4) . ' /></td>
+                                               <td colspan="3"><input type="number" name="showLimit" id="showLimit" value="' . htmlspecialchars(($this->showLimit ? $this->showLimit : '')) . '"' . $GLOBALS['TBE_TEMPLATE']->formWidth(5) . ' /></td>
                                        </tr>
                                </table>
                        ' . $formElements[1] . '</div>';