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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user