mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Spelling, JS and update to attaching templates
This commit is contained in:
@@ -33,8 +33,8 @@ if(is_admin() === false) {
|
||||
<option></option>
|
||||
<?php
|
||||
|
||||
foreach(dbFetchRows("SELECT `id`,`rule` FROM `alert_rules` where `disabled` = 0", array()) as $rule) {
|
||||
echo '<option value="'.$rule['id'].'">'.$rule['rule'].'</option>';
|
||||
foreach(dbFetchRows("SELECT `id`,`rule`,`name` FROM `alert_rules`", array()) as $rule) {
|
||||
echo '<option value="'.$rule['id'].'">'.$rule['name'].'</option>';
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
@@ -56,7 +56,6 @@ if(is_admin() === false) {
|
||||
|
||||
<script>
|
||||
$('#attach-alert-template').on('show.bs.modal', function(e) {
|
||||
event.preventDefault();
|
||||
template_id = $(e.relatedTarget).data('template_id');
|
||||
$("#template_id").val(template_id);
|
||||
$.ajax({
|
||||
|
||||
Reference in New Issue
Block a user