mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-23 20:07:44 +01:00
Update WebUI to enable/disable Growl notifications
This commit is contained in:
@@ -528,6 +528,23 @@
|
||||
<table class="configtable" summary="Notifications">
|
||||
<tr>
|
||||
<td>
|
||||
<fieldset>
|
||||
<h3>Growl</h3>
|
||||
<div class="row checkbox">
|
||||
<input type="checkbox" name="growl_enabled" id="growl" value="1" ${config['growl_enabled']} /><label>Enable Growl Notifications</label>
|
||||
</div>
|
||||
<div id="growloptions">
|
||||
<div class="row">
|
||||
<label>Growl Host:Port</label><input type="text" name="growl_host" value="${config['growl_host']}" size="30">
|
||||
</div>
|
||||
<div class="row">
|
||||
<label>Growl Password</label><input type="password" name="growl_password" value="${config['growl_password']}" size="30">
|
||||
</div>
|
||||
<div class="row checkbox">
|
||||
<input type="checkbox" name="growl_onsnatch" value="1" ${config['growl_onsnatch']} /><label>Notify on snatch?</label>
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<h3>Prowl</h3>
|
||||
<div class="row checkbox">
|
||||
@@ -1177,6 +1194,26 @@
|
||||
}
|
||||
});
|
||||
|
||||
if ($("#growl").is(":checked"))
|
||||
{
|
||||
$("#growloptions").show();
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#growloptions").hide();
|
||||
}
|
||||
|
||||
$("#growl").click(function(){
|
||||
if ($("#growl").is(":checked"))
|
||||
{
|
||||
$("#growloptions").slideDown();
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#growloptions").slideUp();
|
||||
}
|
||||
});
|
||||
|
||||
if ($("#prowl").is(":checked"))
|
||||
{
|
||||
$("#prowloptions").show();
|
||||
|
||||
Reference in New Issue
Block a user