Update of /var/cvs/applications/searchrelate/templates
In directory james.mmbase.org:/tmp/cvs-serv6861

Modified Files:
        Searcher.js.jsp page.jspx 
Log Message:



See also: http://cvs.mmbase.org/viewcvs/applications/searchrelate/templates


Index: Searcher.js.jsp
===================================================================
RCS file: /var/cvs/applications/searchrelate/templates/Searcher.js.jsp,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -b -r1.39 -r1.40
--- Searcher.js.jsp     4 Nov 2008 15:02:12 -0000       1.39
+++ Searcher.js.jsp     6 Nov 2008 14:59:10 -0000       1.40
@@ -16,7 +16,7 @@
  * - mmsrRelaterReady      (use   $("div.mm_related").bind("mmsrRelaterReady", 
function (e, tr) ) )
  *
  * @author Michiel Meeuwissen
- * @version $Id: Searcher.js.jsp,v 1.39 2008/11/04 15:02:12 michiel Exp $
+ * @version $Id: Searcher.js.jsp,v 1.40 2008/11/06 14:59:10 michiel Exp $
  */
 
 
@@ -383,6 +383,13 @@
     });
     this.searchResults = {};
     this.bindEvents();
+    // Arrange that pressing enter in the search-area works:
+    $(this.div).find("input.search").keypress(function(ev) {
+        if (ev.which == 13) {
+            self.search(this.value, 0);
+            return false;
+        }
+    });
     this.validator = this.relater.validator;
     this.searchUrl = $(this.div).find("form.searchform").attr("action");
     this.context   = "";
@@ -462,6 +469,7 @@
                     if ( status == "success" || status == "notmodified" ) {
                         result = res.responseText;
                         $(rep).empty();
+                        $(rep).attr("class", $(result).attr("class"));
                         $("input.search").removeClass("searching");
                         //console.log($(result).find("*").length);
                         $(rep).append($(result).find("> *"));
@@ -629,13 +637,7 @@
     var self = this;
     this.logger.debug("binding to "+ $(this.div).find("a.navigate"));
 
-    // Arrage that pressing enter in the search-area works:
-    $(this.div).find("input.search").keypress(function(ev) {
-        if (ev.which == 13) {
-            self.search(this.value, 0);
-            return false;
-        }
-    });
+
     $(this.div).find("a.navigate").click(function(ev) {
         var anchor = ev.target;
         self.logger.debug("navigating " + anchor);


Index: page.jspx
===================================================================
RCS file: /var/cvs/applications/searchrelate/templates/page.jspx,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- page.jspx   19 Oct 2008 14:15:46 -0000      1.19
+++ page.jspx   6 Nov 2008 14:59:10 -0000       1.20
@@ -1,5 +1,5 @@
 <div
-    class="searchresult"
+    class="searchresult ${param.extraClass}"
     xmlns:jsp="http://java.sun.com/JSP/Page";
     xmlns:c="http://java.sun.com/jsp/jstl/core";
     xmlns:mm="http://www.mmbase.org/mmbase-taglib-2.0";
@@ -9,7 +9,7 @@
       Presents a table with one page of query results. Plus paging to other 
pages (in tfoot).
       Used in ajax-calls, but can also be directly included with mm:include 
(for initial results).
       @todo Searching only happens in actual mmbase queries now. How about 
lucene queries?
-      @version $Id: page.jspx,v 1.19 2008/10/19 14:15:46 andre Exp $
+      @version $Id: page.jspx,v 1.20 2008/11/06 14:59:10 michiel Exp $
   -->
   <jsp:output omit-xml-declaration="true" />
   <mm:import externid="id" required="true" />
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to