mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #715 from laf/alert-rule-fix
Updated the way the rule loop works
This commit is contained in:
@@ -147,9 +147,9 @@ $('#create-alert').on('show.bs.modal', function (event) {
|
||||
dataType: "json",
|
||||
success: function(output) {
|
||||
var arr = [];
|
||||
for (elem in output['rules']) {
|
||||
arr.push(output['rules'][elem]);
|
||||
}
|
||||
$.each ( output['rules'], function( key, value ) {
|
||||
arr.push(value);
|
||||
});
|
||||
$('#response').data('tagmanager').populate(arr);
|
||||
$('#severity').val(output['severity']).change;
|
||||
var extra = $.parseJSON(output['extra']);
|
||||
|
||||
Reference in New Issue
Block a user