diff --git a/airtime_mvc/public/js/airtime/playouthistory/configuretemplate.js b/airtime_mvc/public/js/airtime/playouthistory/configuretemplate.js index f6bc6fdb4..e54b7aee7 100644 --- a/airtime_mvc/public/js/airtime/playouthistory/configuretemplate.js +++ b/airtime_mvc/public/js/airtime/playouthistory/configuretemplate.js @@ -101,9 +101,11 @@ var AIRTIME = (function(AIRTIME) { $templateDiv.on("click", ".template_item_add button", function() { var $div = $(this).parents("div.template_item_add"), - label = $div.find("input").val(), + $input = $div.find("input"), + label = $input.val(), name; + $input.val(""); //create a string name that will work for all languages. name = randomString(10);