Fixed javascript issue preventing removing alert rules.

This commit is contained in:
Neil Lathwood
2015-06-20 01:29:01 +01:00
parent 570fd169bd
commit 3f2b49c72f

View File

@@ -40,9 +40,8 @@ if(is_admin() === false) {
</div>
<script>
$('#confirm-delete').on('show.bs.modal', function(e) {
event.preventDefault();
alert_id = $(e.relatedTarget).data('alert_id');
$('#confirm-delete').on('show.bs.modal', function(event) {
alert_id = $(event.relatedTarget).data('alert_id');
$("#alert_id").val(alert_id);
});