mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fixed creating new template straight after deleting one
This commit is contained in:
@@ -57,6 +57,7 @@ $('#alert-template-removal').click('', function(event) {
|
||||
if(msg.indexOf("ERROR:") <= -1) {
|
||||
$("#row_"+template_id).remove();
|
||||
}
|
||||
$("#template_id").val('');
|
||||
$("#message").html('<div class="alert alert-info">'+msg+'</div>');
|
||||
$("#confirm-delete-alert-template").modal('hide');
|
||||
},
|
||||
|
||||
@@ -34,7 +34,7 @@ echo '<div class="table-responsive">
|
||||
<td>';
|
||||
|
||||
if ($_SESSION['userlevel'] >= '10') {
|
||||
echo '<button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#alert-template">Create new alert template</button>';
|
||||
echo '<button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#alert-template" data-template_id="">Create new alert template</button>';
|
||||
}
|
||||
|
||||
echo '</td>
|
||||
|
||||
Reference in New Issue
Block a user