Don't add the active class on the lock button if locked

prevent an inconsistent button state if the owner join a locked room (after he authenticate)
master
Daniel Berteaud 11 years ago
parent a15e6d7199
commit dec8da6a44
  1. 2
      templates/default/join.html.ep

@ -96,7 +96,7 @@
<li>
<div class="navbar-form">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default<%= $locked eq 'checked' ? ' btn-danger active':'' %> help" id="lockLabel" data-toggle="tooltip" data-placement="bottom" title="<%=l 'PREVENT_TO_JOIN' %>">
<label class="btn btn-default<%= $locked eq 'checked' ? ' btn-danger':'' %> help" id="lockLabel" data-toggle="tooltip" data-placement="bottom" title="<%=l 'PREVENT_TO_JOIN' %>">
<input type="checkbox" id="lockButton" <%= $locked %>>
<span class="glyphicon glyphicon-lock">
</span>

Loading…
Cancel
Save