Update of /var/cvs/html/mmbase/components/x
In directory james.mmbase.org:/tmp/cvs-serv14906
Modified Files:
change.jspx create.jspx
Log Message:
javascript was changed a bit
See also: http://cvs.mmbase.org/viewcvs/html/mmbase/components/x
Index: change.jspx
===================================================================
RCS file: /var/cvs/html/mmbase/components/x/change.jspx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- change.jspx 27 Jun 2008 12:41:40 -0000 1.6
+++ change.jspx 14 Jul 2008 17:52:07 -0000 1.7
@@ -14,7 +14,7 @@
TODO: Some way to edit relations? NODE-field editor?
- $Id: change.jspx,v 1.6 2008/06/27 12:41:40 michiel Exp $
+ $Id: change.jspx,v 1.7 2008/07/14 17:52:07 michiel Exp $
-->
<mm:import externid="ok" from="request">init</mm:import>
<mm:import externid="submitted"><mm:write referid="ok" /></mm:import>
@@ -30,7 +30,7 @@
validator.validateHook = function(valid) {
document.getElementById('okbutton').disabled =
this.invalidElements != 0;
}
- validator.setup(window,
document.getElementById("${requestScope.componentId}"));
+
validator.setup(document.getElementById("${requestScope.componentId}"));
</script>
<mm:maywrite inverse="true"><mm:import
id="readonly">readonly</mm:import></mm:maywrite>
Index: create.jspx
===================================================================
RCS file: /var/cvs/html/mmbase/components/x/create.jspx,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- create.jspx 27 Jun 2008 12:41:40 -0000 1.6
+++ create.jspx 14 Jul 2008 17:52:07 -0000 1.7
@@ -16,12 +16,12 @@
document.getElementById('okbutton').disabled = this.invalidElements !=
0;
}
- validator.setup(window,
document.getElementById("${requestScope.componentId}"));
+ validator.setup(document.getElementById("${requestScope.componentId}"));
</script>
<!--
Offers a form for one new MMBase node.
Also handles the form, and then redirects to change.jspx, because the
node is existng then.
- $Id: create.jspx,v 1.6 2008/06/27 12:41:40 michiel Exp $
+ $Id: create.jspx,v 1.7 2008/07/14 17:52:07 michiel Exp $
-->
<mm:import id="referids" from="request">nodemanager,only?</mm:import>
<mm:cloud rank="basic user">
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs