Add retry and expire for Pushover priority 2

This commit is contained in:
JonnyWong16 2018-03-06 09:57:06 -08:00
commit 39406c25c3
2 changed files with 43 additions and 7 deletions

View file

@ -606,6 +606,22 @@
});
});
% elif notifier['agent_name'] == 'pushover':
function pushoverPriority() {
if ($('#pushover_priority').val() == '2') {
$('#pushover_retry').closest('.form-group').show();
$('#pushover_expire').closest('.form-group').show();
} else {
$('#pushover_retry').closest('.form-group').hide();
$('#pushover_expire').closest('.form-group').hide();
}
}
pushoverPriority();
$('#pushover_priority').change( function () {
pushoverPriority();
});
% endif
function validateLogic() {