Permalink
Browse files

Webadmin: use numeric inputs for numbers.

Depending on browser, it can be a spinbox, for example.
HTML5 FTW :P
  • Loading branch information...
1 parent 38ce179 commit 7b42dc7063b3ae343b430b111ac9c6651c843730 @DarthGandalf DarthGandalf committed Mar 21, 2012
Showing with 4 additions and 4 deletions.
  1. +1 −1 modules/data/webadmin/tmpl/add_edit_chan.tmpl
  2. +3 −3 modules/data/webadmin/tmpl/add_edit_user.tmpl
@@ -25,7 +25,7 @@
<div class="subsection">
<div class="inputlabel">Buffer Count:</div>
- <div><input type="text" name="buffercount" value="<? VAR BufferCount ?>" size="10" /></div>
+ <div><input type="number" name="buffercount" value="<? VAR BufferCount ?>" size="10" min="0" /></div>
</div>
<div class="subsection">
@@ -184,7 +184,7 @@
</div>
<div class="subsection third">
<div class="inputlabel">Buffer Size:</div>
- <div><input type="text" name="bufsize" value="<? VAR BufferCount ?>" maxlength="9" /></div>
+ <div><input type="number" name="bufsize" value="<? VAR BufferCount ?>" maxlength="9" min="0" /></div>
<br /><span class="info">Empty = use standard value</span>
</div>
</div>
@@ -221,11 +221,11 @@
</div>
<div class="subsection">
<div class="inputlabel">Join Tries:</div>
- <div><input type="text" name="jointries" value="<? VAR JoinTries ?>" class="third" /></div>
+ <div><input type="number" name="jointries" value="<? VAR JoinTries ?>" class="third" min="0" /></div>
</div>
<div class="subsection">
<div class="inputlabel">Max Joins:</div>
- <div><input type="text" name="maxjoins" value="<? VAR MaxJoins ?>" class="third" /></div>
+ <div><input type="number" name="maxjoins" value="<? VAR MaxJoins ?>" class="third" min="0" /></div>
</div>
<div class="subsection half">
<div class="inputlabel">CTCP Replies:</div>

0 comments on commit 7b42dc7

Please sign in to comment.