Spelling, JS and update to attaching templates

This commit is contained in:
laf
2015-05-30 18:10:32 +01:00
parent f7a10e60f8
commit bf7a94dd2d
2 changed files with 3 additions and 4 deletions

View File

@@ -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({