From: tla Date: Sat, 29 Nov 2014 21:35:31 +0000 (+0100) Subject: Update tradition name in directory as soon as it is changed. Fixes #35 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=24e6442979df624827474812d945fc0615bc9dec;p=scpubgit%2Fstemmaweb.git Update tradition name in directory as soon as it is changed. Fixes #35 --- diff --git a/root/js/componentload.js b/root/js/componentload.js index 00a4961..5c9412d 100644 --- a/root/js/componentload.js +++ b/root/js/componentload.js @@ -85,7 +85,10 @@ function load_textinfo() { $('#textinfo_waitbox').hide(); $('#textinfo_load_status').empty(); $('#textinfo_container').show(); + // The tradition name should appear here and should be identical in the + // corresponding directory span. In case the name was just changed... $('.texttitle').empty().append( selectedTextInfo.name ); + $('#' + selectedTextID).empty().append( selectedTextInfo.name ); // Witnesses $('#witness_num').empty().append( selectedTextInfo.witnesses.size ); $('#witness_list').empty().append( selectedTextInfo.witnesses.join( ', ' ) ); diff --git a/root/src/header.tt b/root/src/header.tt index 858a528..02d3466 100644 --- a/root/src/header.tt +++ b/root/src/header.tt @@ -1,4 +1,4 @@ -[% vstr = '005' -%] +[% vstr = '006' -%]