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

Commit 081e32d

Browse files
author
ameliagoodman
committed
got rid of 2 sets of ssl buttons and did the cool trick josh taught me
1 parent ad88b4f commit 081e32d

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

js/templates/serverConfigForm.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,9 @@
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) { %>
54-
<input type="radio" class="fieldItem" id="js-sslOn" name="sslSwitch" value="true" checked /><label for="js-sslOn" class="radioLabel"><%= polyglot.t('SSLOn') %></label>
55-
<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-
<% } %>
53+
<input type="radio" class="fieldItem" id="js-sslOn" name="sslSwitch" value="true" <% if(ob.SSL) { print("checked") } %> /><label for="js-sslOn" class="radioLabel"><%= polyglot.t('SSLOn') %></label>
54+
<input type="radio" class="fieldItem" id="js-sslOff" name="sslSwitch" value="false" <% if(!ob.SSL) { print("checked") } %>/><label for="js-sslOff" class="radioLabel"><%= polyglot.t('SSLOff') %></label>
55+
6056
</div>
6157
</div>
6258
<div class="flexRow">

0 commit comments

Comments
 (0)