fix: alert templates designer now fixed #5636 (#5638)

This commit is contained in:
Neil Lathwood
2017-01-27 23:31:46 +00:00
committed by GitHub
parent 4f912e2aca
commit dda3bb0995
+4 -4
View File
@@ -102,10 +102,6 @@ $('#alert-template').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget);
var template_id = button.data('template_id');
var action = button.data('template_action');
$('#template').val('');
$('#line').val('');
$('#value').val('');
$('#name').val('');
if(action == 'edit') {
$('#template_id').val(template_id);
$.ajax({
@@ -124,6 +120,10 @@ $('#alert-template').on('show.bs.modal', function (event) {
});
$('#alert-template').on('hide.bs.modal', function(event) {
$('#template_id').val('');
$('#template').val('');
$('#line').val('');
$('#value').val('');
$('#name').val('');
});
$('#create-template').click('', function(e) {