mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02: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) {
|
if(msg.indexOf("ERROR:") <= -1) {
|
||||||
$("#row_"+template_id).remove();
|
$("#row_"+template_id).remove();
|
||||||
}
|
}
|
||||||
|
$("#template_id").val('');
|
||||||
$("#message").html('<div class="alert alert-info">'+msg+'</div>');
|
$("#message").html('<div class="alert alert-info">'+msg+'</div>');
|
||||||
$("#confirm-delete-alert-template").modal('hide');
|
$("#confirm-delete-alert-template").modal('hide');
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ echo '<div class="table-responsive">
|
|||||||
<td>';
|
<td>';
|
||||||
|
|
||||||
if ($_SESSION['userlevel'] >= '10') {
|
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>
|
echo '</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user