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

Modified Files:
        List.js.jsp 
Log Message:
changed implementation of mm-sr:relatednodes a bit, so that you can also edit 
more complicated structures with the same thing. E.g. also edit the relation 
itself


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


Index: List.js.jsp
===================================================================
RCS file: /var/cvs/applications/searchrelate/templates/List.js.jsp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- List.js.jsp 3 Jul 2008 16:13:00 -0000       1.15
+++ List.js.jsp 18 Jul 2008 08:20:50 -0000      1.16
@@ -13,7 +13,7 @@
  * The user does not need to push a commit button. All data is implicitely 
committed (after a few second of inactivity, or before unload).
  *
  * @author Michiel Meeuwissen
- * @version $Id: List.js.jsp,v 1.15 2008/07/03 16:13:00 michiel Exp $
+ * @version $Id: List.js.jsp,v 1.16 2008/07/18 08:20:50 michiel Exp $
  */
 
 
@@ -35,8 +35,9 @@
     this.callBack = null; // called on delete and create
 
     this.type = this.find(this.div, "form.list").find("input[name = 
'type']")[0].value;
-    this.role = this.find(this.div, "form.list").find("input[name = 
'role']")[0].value;
-    this.source = this.find(this.div, "form.list").find("input[name = 
'submit']")[0].value;
+    this.item = this.find(this.div, "form.list").find("input[name = 
'item']")[0].value;
+    this.seq = this.find(this.div, "form.list").find("input[name = 
'seq']")[0].value;
+    this.source = this.find(this.div, "form.list").find("input[name = 
'source']")[0].value;
 
     this.lastChange = null;
     this.lastCommit = null;
@@ -245,16 +246,17 @@
                .each(function() {
                    params[this.name || this.id || this.parentNode.name || 
this.parentNode.id ] = this.value;
                });
+               params.item = this.item;
+               params.seq = this.seq;
+               params.source = this.source;
                var self = this;
                this.status("<img 
src='${mm:link('/mmbase/style/ajax-loader.gif')}' />");
                $.ajax({ type: "POST",
                         async: async == null ? true : async,
                         url: 
"${mm:link('/mmbase/searchrelate/list/save.jspx')}",
                         data: params,
-                        success: function() {
+                        complete: function(req, textStatus) {
                             self.status('<fmt:message key="saved" />', true);
-
-
                         }
                      });
 
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to