From 19cb9c9cc1fa9f8deb08938fb03507fe5b6b5b64 Mon Sep 17 00:00:00 2001 From: nbm Date: Fri, 7 Oct 2005 15:23:49 +0000 Subject: [PATCH] Update fieldset on popStack, and show the label of the lookup, not the numeric value. --- presentation/lookAndFeel/knowledgeTree/js/conditional_usage.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/presentation/lookAndFeel/knowledgeTree/js/conditional_usage.js b/presentation/lookAndFeel/knowledgeTree/js/conditional_usage.js index c6b21e7..bbee902 100644 --- a/presentation/lookAndFeel/knowledgeTree/js/conditional_usage.js +++ b/presentation/lookAndFeel/knowledgeTree/js/conditional_usage.js @@ -104,7 +104,9 @@ function popStack(fieldset) { return ; } var last_item = undostack.pop(); + simpleLog('DEBUG','popping item\n'+toHTML(last_item)); last_item.parentNode.removeChild(last_item); + updateFieldset(fieldset); } /** @@ -117,7 +119,7 @@ function createFixedWidget(fieldset, widget, i_name, i_value, i_label) { TH(null, i_name), TD(null, INPUT({'type':'hidden','name':i_name, 'value':i_value,'class':'fixed'}), - SPAN(null, i_value) + SPAN(null, i_label) ) ); swapDOM(widget, newWidget); -- libgit2 0.21.4