Author: michiel
Date: 2010-07-15 11:30:39 +0200 (Thu, 15 Jul 2010)
New Revision: 42895

Modified:
   
mmbase/branches/MMBase-1_9/applications/searchrelate/src/main/resources/META-INF/tags/mm/searchrelate/relate.tagx
Log:
moved a bit of javascript to Searcher.js.jsp, which also fixed a bug that the 
event binded to click doesn't seem to work always

Modified: 
mmbase/branches/MMBase-1_9/applications/searchrelate/src/main/resources/META-INF/tags/mm/searchrelate/relate.tagx
===================================================================
--- 
mmbase/branches/MMBase-1_9/applications/searchrelate/src/main/resources/META-INF/tags/mm/searchrelate/relate.tagx
   2010-07-15 08:51:26 UTC (rev 42894)
+++ 
mmbase/branches/MMBase-1_9/applications/searchrelate/src/main/resources/META-INF/tags/mm/searchrelate/relate.tagx
   2010-07-15 09:30:39 UTC (rev 42895)
@@ -112,12 +112,6 @@
     </mm:link>
   </c:if>
   <jsp:directive.include file="/mmbase/searchrelate/settings.jspf" />
-  <script type="text/javascript">
-    <c:if test="${! empty submit}"><!-- submit attribute given: commit 
search/relate on click of that element -->
-      $("${submit}").live("click", function(el) {
-        return $("#mm_related_${sid}")[0].relater.commit(el); });
-    </c:if>
-  </script>
 
   <fmt:bundle
       xmlns:fmt="http://java.sun.com/jsp/jstl/fmt";
@@ -132,6 +126,7 @@
         <c:if test="${! empty pagesize}"><span 
class="pagesize">${pagesize}</span></c:if>
         <c:if test="${! empty maxpages}"><span 
class="maxpages">${maxpages}</span></c:if>
         <c:if test="${! empty context}"><span 
class="context">${context}</span></c:if>
+        <c:if test="${! empty submit}"><span 
class="submit">${submit}</span></c:if>
         <span class="repositoryManager">${repository.nodeManager.name}</span>
         <c:if test="${! empty current}">
           <span class="currentMaxNumber">${current.maxNumber}</span>

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to