fixed bugs in the Find script and also rigged ScriptManager to better handle

the JavaScript native errors that crop up occasionally
This commit is contained in:
Eric J. Bowersox
2002-01-09 23:45:27 +00:00
parent c2fb1f036f
commit b422f4d663
2 changed files with 25 additions and 6 deletions

View File

@@ -80,23 +80,23 @@ try
{ // do the search
if (topic!=null)
{ // search the topic
view.results = topic.searchPosts(term,offset,view.maxResults);
view.results = topic.searchPosts(view.term,view.offset,view.maxResults);
if (view.findCount<0)
view.findCount = topic.getSearchPostCount(term);
view.findCount = topic.getSearchPostCount(view.term);
} // end if
else if (conf!=null)
{ // search the conference
view.results = conf.searchPosts(term,offset,view.maxResults);
view.results = conf.searchPosts(view.term,view.offset,view.maxResults);
if (view.findCount<0)
view.findCount = conf.getSearchPostCount(term);
view.findCount = conf.getSearchPostCount(view.term);
} // end else if
else
{ // search the community
view.results = comm.searchPosts(term,offset,view.maxResults);
view.results = comm.searchPosts(view.term,view.offset,view.maxResults);
if (view.findCount<0)
view.findCount = comm.getSearchPostCount(term);
view.findCount = comm.getSearchPostCount(view.term);
} // end else