mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-02 01:39:29 +01:00
Added https options to web interface
This commit is contained in:
@@ -54,6 +54,19 @@
|
||||
<div class="row checkbox">
|
||||
<input type="checkbox" name="launch_browser" value="1" ${config['launch_browser']} /> <label>Launch Browser on Startup</label>
|
||||
</div>
|
||||
<div class="row checkbox">
|
||||
<input type="checkbox" name="enable_https" id="enable_https" value="1" ${config['enable_https']} /> <label>Enable HTTPS</label>
|
||||
</div>
|
||||
<div id="https_options">
|
||||
<div class="row">
|
||||
<label>HTTPS Cert</label>
|
||||
<input type="text" name="https_cert" value="${config['https_cert']}" size="30">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>HTTPS Key</label>
|
||||
<input type="text" name="https_key" value="${config['https_key']}" size="30">
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</td>
|
||||
<td>
|
||||
@@ -945,6 +958,25 @@
|
||||
$('#api_key').val(data);
|
||||
});
|
||||
});
|
||||
if ($("#enable_https").is(":checked"))
|
||||
{
|
||||
$("#https_options").show();
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#https_options").hide();
|
||||
}
|
||||
|
||||
$("#enable_https").click(function(){
|
||||
if ($("#enable_https").is(":checked"))
|
||||
{
|
||||
$("#https_options").slideDown();
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#https_options").slideUp();
|
||||
}
|
||||
});
|
||||
if ($("#music_encoder").is(":checked"))
|
||||
{
|
||||
$("#encoderoptions").show();
|
||||
@@ -1214,6 +1246,7 @@
|
||||
initConfigCheckbox("#userutracker");
|
||||
initConfigCheckbox("#usewhatcd");
|
||||
initConfigCheckbox("#useapi");
|
||||
initConfigCheckbox("#enable_https");
|
||||
}
|
||||
$(document).ready(function() {
|
||||
initThisPage();
|
||||
|
||||
Reference in New Issue
Block a user