Validate room name field

Not perfect as the message is not easily customizable, but better than nothing ;-)
Fix #15
master
Daniel Berteaud 11 years ago
parent 0a051f8c05
commit d481ff47e2
  1. 2
      templates/default/index.html.ep

@ -23,7 +23,7 @@
<%= $url %> <%= $url %>
</strong> </strong>
</span> </span>
<input id="roomName" name="roomName" type="text" placeholder="<%=l 'ROOM_NAME' %>" class="form-control help" data-toggle="tooltip" data-placement="bottom" title="<%=l 'RANDOM_IF_EMPTY' %>" autofocus> <input id="roomName" name="roomName" type="text" pattern="[\w\-]{0,49}" placeholder="<%=l 'ROOM_NAME' %>" class="form-control help" data-toggle="tooltip" data-placement="bottom" title="<%=l 'RANDOM_IF_EMPTY' %>" autofocus>
<span class="input-group-btn"> <span class="input-group-btn">
<button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-log-in"></span></button> <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-log-in"></span></button>
</span> </span>

Loading…
Cancel
Save