mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Change Numeric Keyboard to Keypad
Added pattern to html to make the keyboard a keypad Closes #4426 Added pattern="[0-9]*" to the postsPerPage input on general.hbs
This commit is contained in:
parent
67a5f6cd0a
commit
d6863ae306
1 changed files with 2 additions and 1 deletions
|
@ -56,7 +56,8 @@
|
|||
|
||||
<div class="form-group">
|
||||
<label for="postsPerPage">Posts per page</label>
|
||||
{{input id="postsPerPage" name="general[postsPerPage]" focus-out="checkPostsPerPage" value=postsPerPage min="1" max="1000" type="number"}}
|
||||
{{! `pattern` brings up numeric keypad allowing any number of digits}}
|
||||
{{input id="postsPerPage" name="general[postsPerPage]" focus-out="checkPostsPerPage" value=postsPerPage min="1" max="1000" type="number" pattern="[0-9]*"}}
|
||||
<p>How many posts should be displayed on each page</p>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue