From: Pasi Kallinen Date: Mon, 15 Jul 2013 08:01:28 +0000 (+0300) Subject: In reports, show old label name as the default in the Alter Display Header -prompt X-Git-Tag: sprint4-merge-nov22~2632 X-Git-Url: https://git.evergreen-ils.org/?p=working%2FEvergreen.git;a=commitdiff_plain;h=1db3c9196054cdd1f783e5f42b2f6b98b2eff3be In reports, show old label name as the default in the Alter Display Header -prompt Signed-off-by: Pasi Kallinen Signed-off-by: Ben Shum --- diff --git a/Open-ILS/web/reports/xul/template-config.js b/Open-ILS/web/reports/xul/template-config.js index ddc81e80c4..e936880da5 100644 --- a/Open-ILS/web/reports/xul/template-config.js +++ b/Open-ILS/web/reports/xul/template-config.js @@ -200,7 +200,8 @@ function alterColumnLabel () { var field = item.firstChild.firstChild; var colname = field.nextSibling.getAttribute('label'); - var new_label = prompt( dojo.string.substitute(rpt_strings.TEMPLATE_CONF_PROMPT_CHANGE, [field.getAttribute("label")]) ); + var old_label = field.getAttribute("label"); + var new_label = prompt( dojo.string.substitute(rpt_strings.TEMPLATE_CONF_PROMPT_CHANGE, [old_label]), old_label ); if (new_label) { rpt_rel_cache[relation_alias].fields[tabname][colname].alias = new_label;