Update of /var/cvs/applications/searchrelate/templates
In directory james.mmbase.org:/tmp/cvs-serv21576
Modified Files:
List.js.jsp
Log Message:
some extra argument on the callBack function
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.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- List.js.jsp 5 Jun 2008 13:35:10 -0000 1.9
+++ List.js.jsp 5 Jun 2008 13:57:20 -0000 1.10
@@ -13,11 +13,11 @@
* 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.9 2008/06/05 13:35:10 michiel Exp $
+ * @version $Id: List.js.jsp,v 1.10 2008/06/05 13:57:20 michiel Exp $
*/
-$(document).ready(function(a, b) {
+$(document).ready(function() {
$(document).find("div.list").each(function() {
if (this.list == null) {
this.list = new List(this);
@@ -152,7 +152,7 @@
});
a.list.find(a.list.div, "ol").append(r);
a.list.validator.addValidation(r);
- a.list.find(r, "a", "delete").each(function() {
+ a.list.find(r, "a.delete").each(function() {
a.list.bindDelete(this);
});
$(r).find("* div.list").each(function() {
@@ -161,7 +161,7 @@
div.list = new List(div);
}
});
- a.list.executeCallBack();
+ a.list.executeCallBack("create", r);
}
}
@@ -182,7 +182,7 @@
a.list.validator.removeValidation(li);
var ol = $(a).parents("ol")[0];
ol.removeChild(li);
- a.list.executeCallBack();
+ a.list.executeCallBack("delete", li);
}
}
});
@@ -191,9 +191,9 @@
}
-List.prototype.executeCallBack = function() {
+List.prototype.executeCallBack = function(type, element) {
if (this.callBack != null) {
- this.callBack(self);
+ this.callBack(self, type, element);
} else {
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs