Update of /var/cvs/applications/searchrelate/templates In directory james.mmbase.org:/tmp/cvs-serv18036
Modified Files: Searcher.js.jsp Log Message: reset related/unrelated statuses after commit 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.4 retrieving revision 1.5 diff -u -b -r1.4 -r1.5 --- Searcher.js.jsp 14 Apr 2008 16:19:01 -0000 1.4 +++ Searcher.js.jsp 15 Apr 2008 08:39:20 -0000 1.5 @@ -11,7 +11,7 @@ * * @author Michiel Meeuwissen - * @version $Id: Searcher.js.jsp,v 1.4 2008/04/14 16:19:01 michiel Exp $ + * @version $Id: Searcher.js.jsp,v 1.5 2008/04/15 08:39:20 michiel Exp $ */ $(document).ready(function(){ @@ -119,12 +119,15 @@ if (this.transaction != null) { params.transaction = this.transaction; } + var self = this; $.ajax({async: false, url: url, type: "GET", dataType: "xml", data: params, complete: function(res, status){ $(a).removeClass("submitting"); if (status == "success") { //console.log("" + res); $(a).addClass("succeeded"); + this.related = {}; + this.unrelated = {}; return true; } else { $(a).addClass("failed"); @@ -357,6 +360,7 @@ url: "${mm:link('/mmbase/searchrelate/create.jspx')}", target: null, success: function(res) { + self.logger.debug(status); var newNode = $(res).find("span.newnode")[0].firstChild.nodeValue; var tr = self.getTr(newNode); self.relater.relate(tr); _______________________________________________ Cvs mailing list Cvs@lists.mmbase.org http://lists.mmbase.org/mailman/listinfo/cvs