Update WebUI to enable/disable Growl notifications

This commit is contained in:
Bas Stottelaar
2014-04-01 00:36:02 +02:00
parent c26e867859
commit 9872e9a1a3
2 changed files with 46 additions and 1 deletions
+37
View File
@@ -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();