From 5c0ba2e79b92fc7f11cfb79b19c3b5cb10c24e2c Mon Sep 17 00:00:00 2001 From: Naomi Date: Thu, 22 Aug 2013 14:23:07 -0400 Subject: [PATCH] clearing custom Label name after adding --- .../public/js/airtime/playouthistory/configuretemplate.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);