Commit bba83713dccc4e86445888ea1402a85961199c0a
1 parent
043b6d96
Use kt-core-baseurl to create an absolute path (but not url) to find the
boolean search ajax helper. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@4002 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
2 deletions
presentation/lookAndFeel/knowledgeTree/js/constructed_search.js
| @@ -81,7 +81,7 @@ function addNewCriteria(add_button) { | @@ -81,7 +81,7 @@ function addNewCriteria(add_button) { | ||
| 81 | var tableId = getBooleanGroupId(parent_table); | 81 | var tableId = getBooleanGroupId(parent_table); |
| 82 | simpleLog('DEBUG','got boolean group id'+tableId); | 82 | simpleLog('DEBUG','got boolean group id'+tableId); |
| 83 | 83 | ||
| 84 | - // ok, warn the user that we're loading the item. | 84 | + // ok, warn the user that we\'re loading the item. |
| 85 | replaceChildNodes(notify_message, 'loading...'); | 85 | replaceChildNodes(notify_message, 'loading...'); |
| 86 | var newCriteriaText = scrapeText(select.options[select.selectedIndex])+' '; // FIXME insert the "input" here. | 86 | var newCriteriaText = scrapeText(select.options[select.selectedIndex])+' '; // FIXME insert the "input" here. |
| 87 | replaceChildNodes(select.parentNode, newCriteriaText, INPUT({'type':'hidden', 'name':'boolean_search[subgroup]['+tableId+'][values]['+critId+'][type]','value':select.value})); // works thanks to DOM co-ercion. | 87 | replaceChildNodes(select.parentNode, newCriteriaText, INPUT({'type':'hidden', 'name':'boolean_search[subgroup]['+tableId+'][values]['+critId+'][type]','value':select.value})); // works thanks to DOM co-ercion. |
| @@ -93,7 +93,8 @@ function addNewCriteria(add_button) { | @@ -93,7 +93,8 @@ function addNewCriteria(add_button) { | ||
| 93 | 93 | ||
| 94 | // fetch. | 94 | // fetch. |
| 95 | var dest_cell = notify_message.parentNode; | 95 | var dest_cell = notify_message.parentNode; |
| 96 | - var targeturl='ajaxBooleanSearch.php?action=getNewCriteria&type='+select.value+'&critId='+critId; | 96 | + var baseUrl = getElement('kt-core-baseurl').value; |
| 97 | + var targeturl = baseUrl + '/presentation/lookAndFeel/knowledgeTree/search/ajaxBooleanSearch.php?action=getNewCriteria&type='+select.value+'&critId='+critId; | ||
| 97 | simpleLog('DEBUG','addNewCriteria initiating request to: '+targeturl); | 98 | simpleLog('DEBUG','addNewCriteria initiating request to: '+targeturl); |
| 98 | 99 | ||
| 99 | var deferred = doSimpleXMLHttpRequest(targeturl); | 100 | var deferred = doSimpleXMLHttpRequest(targeturl); |