Skip to content

Commit

Permalink
Added group notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Veldkornet committed May 29, 2019
1 parent a982bb3 commit e22dfac
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion settings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ <h1 data-i18n="settings.title"></h1>
<input class="form_input" id="pushover_user" type="text" value="" />
</div>
<div class="field row">
<label class="form_label" for="pushover_token" data-i18n="settings.pushoverToken"></label>
<label class="form_label" for="pushover_group" data-i18n="settings.pushoverGroup"></label>
<input class="form_input" id="pushover_group" type="text" value="" />
</div>
<div class="field row">
<label class="form_label" for="pushover_token" data-i18n="settings.pushoverToken"></label>
<input class="form_input" id="pushover_token" type="text" value="" />
</div>
<input type="checkbox" id="pushover_ledring" value="pushover_ledring"> <label for="pushover_ledring">Light led ring upon sending notification?</label>
Expand Down Expand Up @@ -84,6 +88,7 @@ <h1 data-i18n="settings.title"></h1>
currentPushoverAccount = value;

document.getElementById('pushover_user').value = currentPushoverAccount['user'];
document.getElementById('pushover_group').value = currentPushoverAccount['group'];
document.getElementById('pushover_token').value = currentPushoverAccount['token'];
if(currentPushoverAccount['ledring'] == true) {
document.getElementById('pushover_ledring').checked = true;
Expand Down Expand Up @@ -123,6 +128,7 @@ <h1 data-i18n="settings.title"></h1>
function clearPushoverSettings() {

document.getElementById('pushover_user').value = '';
document.getElementById('pushover_group').value = '';
document.getElementById('pushover_token').value = '';

}
Expand All @@ -135,6 +141,7 @@ <h1 data-i18n="settings.title"></h1>
// Build array
currentPushoverAccount = {
'user': document.getElementById('pushover_user').value,
'group': document.getElementById('pushover_group').value,
'token': document.getElementById('pushover_token').value,
'ledring': document.getElementById('pushover_ledring').checked
};
Expand Down

0 comments on commit e22dfac

Please sign in to comment.