Update of /var/cvs/applications/searchrelate/templates In directory james.mmbase.org:/tmp/cvs-serv7677
Modified Files: Searcher.js.jsp Log Message: Just added some comments 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.7 retrieving revision 1.8 diff -u -b -r1.7 -r1.8 --- Searcher.js.jsp 15 Apr 2008 14:03:37 -0000 1.7 +++ Searcher.js.jsp 16 Apr 2008 09:05:01 -0000 1.8 @@ -11,7 +11,7 @@ * * @author Michiel Meeuwissen - * @version $Id: Searcher.js.jsp,v 1.7 2008/04/15 14:03:37 michiel Exp $ + * @version $Id: Searcher.js.jsp,v 1.8 2008/04/16 09:05:01 michiel Exp $ */ $(document).ready(function(){ @@ -21,6 +21,10 @@ }); +/** + * Logger, a bit like org.mmbase.util.logging.Logger. Logs to firebug console or a dedicated area. + * + */ function MMBaseLogger(area) { this.logEnabled = false; /*this.traceEnabled = false;*/ @@ -35,11 +39,18 @@ } else { // firebug console console.log(msg); + } } } +/* + * ************************************************************************************************************************ + */ +/** + * The 'relater' encapsulated 1 or 2 'searchers', and is responsible for moving elements from one to the other. + */ function MMBaseRelater(d) { this.div = d; this.related = {}; @@ -68,6 +79,12 @@ } } +/** + * This Searcher.js.jsp is normally loaded implicetly by the first mm-sr:relate. Using the 'ready' function, you can do something + * immediately after the MMBaseRealter is ready. E.g. you can add a 'relateCallBack' function. + * @todo I think jquery provides something with user defined events. + */ + MMBaseRelater.readyFunctions = []; @@ -277,7 +294,9 @@ }); } - +/* + * *********************************************************************************************************************** + */ function MMBaseSearcher(d, r, type, logger) { _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs