Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit ad88b4f

Browse files
author
ameliagoodman
committed
fixed consistency bug
1 parent 713b387 commit ad88b4f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

js/templates/serverConfigForm.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,13 @@
5050
<input name="server_ip" type="text" id="fld_server" placeholder="" class="fieldItem" required="" value="<%= ob.server_ip %>">
5151
</div>
5252
<div class="flexCol-5 sslSwitch-radio ustCol-border <% ob.errors.server_ip && print('invalid') %>">
53+
<% if(ob.SSL) { %>
5354
<input type="radio" class="fieldItem" id="js-sslOn" name="sslSwitch" value="true" checked /><label for="js-sslOn" class="radioLabel"><%= polyglot.t('SSLOn') %></label>
5455
<input type="radio" class="fieldItem" id="js-sslOff" name="sslSwitch" value="false" /><label for="js-sslOff" class="radioLabel"><%= polyglot.t('SSLOff') %></label>
56+
<% } else { %>
57+
<input type="radio" class="fieldItem" id="js-sslOn" name="sslSwitch" value="true" /><label for="js-sslOn" class="radioLabel"><%= polyglot.t('SSLOn') %></label>
58+
<input type="radio" class="fieldItem" id="js-sslOff" name="sslSwitch" value="false" checked/><label for="js-sslOff" class="radioLabel"><%= polyglot.t('SSLOff') %></label>
59+
<% } %>
5560
</div>
5661
</div>
5762
<div class="flexRow">

0 commit comments

Comments
 (0)