From dda3bb09951f0729014a1de6761e67a71ffece44 Mon Sep 17 00:00:00 2001 From: Neil Lathwood Date: Fri, 27 Jan 2017 23:31:46 +0000 Subject: [PATCH] fix: alert templates designer now fixed #5636 (#5638) --- html/includes/modal/alert_template.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/html/includes/modal/alert_template.inc.php b/html/includes/modal/alert_template.inc.php index 7d4d9329f0..32b4698b6a 100644 --- a/html/includes/modal/alert_template.inc.php +++ b/html/includes/modal/alert_template.inc.php @@ -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) {