Clear out rule entries now when modal form closes

This commit is contained in:
Neil Lathwood 2014-12-19 21:32:05 +00:00
parent 7cd8cf7ecf
commit 51db1af74d

View File

@ -115,6 +115,10 @@ if(is_admin() === false) {
$("[name='mute']").bootstrapSwitch('offColor','danger');
$('#create-alert').on('hide.bs.modal', function (event) {
$('#response').data('tagmanager').empty();
});
$('#create-alert').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget);
var device_id = button.data('device_id');