From 5075b31b525a47f396d72351d9b1b9595b5e6463 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Sat, 15 Oct 2005 10:37:11 +0000 Subject: [PATCH] Don't put quotes around text keys to input arrays - they aren't needed, and they just add the quotes into the request variable. --- presentation/lookAndFeel/knowledgeTree/js/constructed_search.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/presentation/lookAndFeel/knowledgeTree/js/constructed_search.js b/presentation/lookAndFeel/knowledgeTree/js/constructed_search.js index 65cd7c8..e482a60 100644 --- a/presentation/lookAndFeel/knowledgeTree/js/constructed_search.js +++ b/presentation/lookAndFeel/knowledgeTree/js/constructed_search.js @@ -63,7 +63,7 @@ function addNewCriteria(add_button) { // ok, warn the user that we're loading the item. replaceChildNodes(notify_message, 'loading...'); var newCriteriaText = scrapeText(select.options[select.selectedIndex])+' '; // FIXME insert the "input" here. - replaceChildNodes(select.parentNode, newCriteriaText, INPUT({'type':'hidden', 'name':'boolean_search['+critId+'][\'type\']','value':select.value})); // works thanks to DOM co-ercion. + replaceChildNodes(select.parentNode, newCriteriaText, INPUT({'type':'hidden', 'name':'boolean_search['+critId+'][type]','value':select.value})); // works thanks to DOM co-ercion. createAdditionalCriteriaOption(); var removeButton = INPUT({'type':'button', 'value':'Remove'}); attachToElementEvent(removeButton, 'click', partial(removeCriteria, removeButton)); @@ -96,11 +96,11 @@ function do_addNewCriteria(destination_cell, crit_id, req) { for (var i=0; i