Author: andre Date: 2010-03-17 17:10:55 +0100 (Wed, 17 Mar 2010) New Revision: 41476
Modified: mmbase/trunk/applications/searchrelate/src/main/resources/META-INF/tags/mm/searchrelate/relate.tagx Log: rollback of changes to submit attr Modified: mmbase/trunk/applications/searchrelate/src/main/resources/META-INF/tags/mm/searchrelate/relate.tagx =================================================================== --- mmbase/trunk/applications/searchrelate/src/main/resources/META-INF/tags/mm/searchrelate/relate.tagx 2010-03-17 16:08:00 UTC (rev 41475) +++ mmbase/trunk/applications/searchrelate/src/main/resources/META-INF/tags/mm/searchrelate/relate.tagx 2010-03-17 16:10:55 UTC (rev 41476) @@ -23,7 +23,7 @@ description="An mmbase Query describing which list is considered to represent already 'related' nodes" /> <jsp:directive.attribute name="submit" type="java.lang.String" - description="A jQuery selector, if relate/unrelate should happen inmediate (default is inmediate). The 'commit' action will be binded to the 'onclick' event of elements that match." /> + description="Id of an element (typically a button) to submit and commit changes. Default it is, when no value is given it means that relate/unrelate happen immediately. The 'commit' action will be binded to the 'onclick' of the element." /> <jsp:directive.attribute name="unrelate" type="java.lang.Boolean" description="Whether, or not, the tools should also allow deletion of relations" /> @@ -110,7 +110,7 @@ <script type="text/javascript"> $(document).ready(function() { <c:if test="${! empty submit}"><!-- submit attribute given: commit search/relate on click of that element --> - $("#mm_related_${sid} ${submit}").click(function(el) { + $("${submit}").click(function(el) { return $("#mm_related_${sid}")[0].relater.commit(el); });</c:if> $("#mm_related_${sid}").each(function() { if (this.relater != null) { _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs