boxcar notification

This commit is contained in:
daktak
2014-04-14 17:43:01 +10:00
parent d6cd9cd7e4
commit 5378884bf8
6 changed files with 182 additions and 1 deletions

View File

@@ -737,6 +737,22 @@
</div>
</fieldset>
<fieldset>
<h3>Boxcar.IO</h3>
<div class="row checkbox">
<input type="checkbox" name="boxcar_enabled" id="boxcar" value="1" ${config['boxcar_enabled']} /><label>Enable Boxcar.IO</label>
</div>
<div id="boxcaroptions">
<div class="row">
<div class="row checkbox">
<input type="checkbox" name="boxcar_onsnatch" value="1" ${config['boxcar_onsnatch']} /><label>Notify on snatch?</label>
</div>
<label>Boxcar Username (email)</label>
<input type="text" name="boxcar_username" value="${config['boxcar_username']}" size="30">
</div>
</div>
</fieldset>
<fieldset>
<h3>Pushbullet</h3>
<div class="row checkbox">
@@ -1427,6 +1443,26 @@
$("#pushbulletoptions").hide();
}
if ($("#boxcar").is(":checked"))
{
$("#boxcaroptions").show();
}
else
{
$("#boxcaroptions").hide();
}
$("#boxcar").click(function(){
if ($("#boxcar").is(":checked"))
{
$("#boxcaroptions").slideDown();
}
else
{
$("#boxcaroptions").slideUp();
}
});
$("#pushbullet").click(function(){
if ($("#pushbullet").is(":checked"))
{