Update of /var/cvs/html/mmbase/edit/basic
In directory james.mmbase.org:/tmp/cvs-serv3100

Modified Files:
        change_node.jsp create_node.jsp javascript.js 
Log Message:
EL vars cannot be used in js, of course


See also: http://cvs.mmbase.org/viewcvs/html/mmbase/edit/basic


Index: change_node.jsp
===================================================================
RCS file: /var/cvs/html/mmbase/edit/basic/change_node.jsp,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -b -r1.43 -r1.44
--- change_node.jsp     2 Apr 2009 07:52:13 -0000       1.43
+++ change_node.jsp     7 Apr 2009 09:28:33 -0000       1.44
@@ -27,6 +27,7 @@
    }
  %>
   <meta name="MMBase-NodeType"     
content="<%=thisNode.getNodeManager().getName()%>" />
+  <meta name="MMBase-SessionName"     content="${config.session}" />
 </head>
 <body class="basic" onLoad="document.change.elements[0].focus();">
 <p class="crumbpath"><%= toHtml(urlStack, request) %></p>


Index: create_node.jsp
===================================================================
RCS file: /var/cvs/html/mmbase/edit/basic/create_node.jsp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -b -r1.21 -r1.22
--- create_node.jsp     2 Apr 2009 07:52:13 -0000       1.21
+++ create_node.jsp     7 Apr 2009 09:28:33 -0000       1.22
@@ -6,6 +6,7 @@
 <title>Create a node</title>
 <mm:import externid="node_type" required="true" />
 <meta name="MMBase-NodeType"     content="${node_type}" />
+<meta name="MMBase-SessionName"     content="${config.session}" />
 </head>
 <mm:context id="create_node">
 


Index: javascript.js
===================================================================
RCS file: /var/cvs/html/mmbase/edit/basic/javascript.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- javascript.js       2 Apr 2009 07:52:13 -0000       1.1
+++ javascript.js       7 Apr 2009 09:28:33 -0000       1.2
@@ -4,7 +4,6 @@
     validator = new MMBaseValidator();
     validator.logEnabled = false;
     validator.traceEnabled = false;
-    validator.sessionName = '${config.session}';
     validator.validateHook = function() {
         var okbutton = document.getElementById('okbutton');
         if (okbutton != null) okbutton.disabled = this.invalidElements != 0;
@@ -12,6 +11,8 @@
         if (savebutton != null) savebutton.disabled = this.invalidElements != 
0;
     }
     validator.lang = $("html head 
meta[name='MMBase-Language']").attr("content");
+    validator.sessionName = $("html head 
meta[name='MMBase-SessionName']").attr("content");
+
     var nt = $("html head meta[name='MMBase-NodeType']");
     if (nt) {
         validator.prefetchNodeManager(nt.attr("content"));
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to