diff --git a/scripts/conf/find.js b/scripts/conf/find.js index fd397ce..e9495d6 100644 --- a/scripts/conf/find.js +++ b/scripts/conf/find.js @@ -10,7 +10,7 @@ // // The Initial Developer of the Original Code is Eric J. Bowersox , // for Silverwrist Design Studios. Portions created by Eric J. Bowersox are -// Copyright (C) 2001 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. +// Copyright (C) 2001-02 Eric J. Bowersox/Silverwrist Design Studios. All Rights Reserved. // // Contributor(s): @@ -66,7 +66,10 @@ view.offset = rinput.getParameterInt("ofs",0); view.findCount = rinput.getParameterInt("fcount",-1); // Adjust the search return offset based on the command button click. -if (rinput.isImageButtonClicked("search")) +// EJB 1/18/2002 - N.B.: some browsers can POST the "Search" form without triggering the +// "Search" button (by just pressing Enter), so we include the hidden "newsearch" parameter +// to distinguish between the two +if (rinput.isImageButtonClicked("search") || (rinput.getParameterInt("newsearch",0)==1)) view.offset = 0; else if (rinput.isImageButtonClicked("previous")) view.offset = Math.max(view.offset - view.maxResults,0); // go backwards diff --git a/web/format/conf/find.jsp b/web/format/conf/find.jsp index 12b944d..08c40e2 100644 --- a/web/format/conf/find.jsp +++ b/web/format/conf/find.jsp @@ -61,6 +61,7 @@ <% } // end if %> + <%-- EJB 1/18/2002 --%> Keywords: @@ -68,7 +69,6 @@

- <% List results = view.getResults(); %> <% if (results!=null) { %> Display Search Results @@ -109,6 +109,7 @@ + <%-- EJB 1/18/2002 --%> <% if (view.getOffset()>0) { %> <% } else { %> @@ -125,44 +126,49 @@
- <%-- Display the results of the search --%> - - - - - - - - - <% for (int i=0; i + <% if (results.size()>0) { %><%-- EJB 1/18/2002 - omit headers if there's nothing to say --%> + <%-- Display the results of the search --%> +
- Post Link - - Author - - Post Date - - Lines -  
- <% TopicMessageFound post = (TopicMessageFound)(results.get(i)); %> - - - - - + + + + + - <% } // end for %> -
- go/<%= post.getIdentifier() %> - <%= post.getIdentifier() %> - - user/<%= post.getAuthor() %> - <%= post.getAuthor() %> - - <%= view.formatDate(post.getPostDate()) %> - - <%= post.getLineCount() %> - - <%= post.getText() %> - + Post Link + + Author + + Post Date + + Lines +  

+ <% for (int i=0; i + + <% TopicMessageFound post = (TopicMessageFound)(results.get(i)); %> + + go/<%= post.getIdentifier() %> + <%= post.getIdentifier() %> + + + user/<%= post.getAuthor() %> + <%= post.getAuthor() %> + + + <%= view.formatDate(post.getPostDate()) %> + + + <%= post.getLineCount() %> + + + <%= post.getText() %> + + + <% } // end for %> +
+ <% } // end if %> <% } // end if %> + + +