From c8a86cdf7530d3cbeadf949efceb87b8aa828489 Mon Sep 17 00:00:00 2001 From: Patrick Lockley Date: Tue, 17 Jul 2012 21:35:04 +0000 Subject: [PATCH] git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@387 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641 --- website_code/scripts/template_management.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/website_code/scripts/template_management.js b/website_code/scripts/template_management.js index 41c4c1be21..da86ee7f3a 100644 --- a/website_code/scripts/template_management.js +++ b/website_code/scripts/template_management.js @@ -1000,7 +1000,15 @@ function remove_this(){ name_string = data_string.split(">"); - var response = confirm(name_string[2].split("<").shift() + "\n\n" + DELETE_PROMPT); + if(name_string.length==3){ + + var response = confirm(name_string[2].split("<").shift() + "\n\n" + DELETE_PROMPT); + + }else{ + + var response = confirm(name_string[1] + "\n\n" + DELETE_PROMPT); + + } }