Update of 
/var/cvs/contributions/didactor2/src/education/templates/education/wizards
In directory james.mmbase.org:/tmp/cvs-serv3618

Modified Files:
        code.jsp index.jsp navigation.jspx reloadMode.js 
Added Files:
        javascript.jsp 
Log Message:
sigh sigh


See also: 
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/education/templates/education/wizards


javascript.jsp is new



Index: code.jsp
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/templates/education/wizards/code.jsp,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -b -r1.114 -r1.115
--- code.jsp    22 Aug 2008 11:12:11 -0000      1.114
+++ code.jsp    22 Aug 2008 15:02:32 -0000      1.115
@@ -5,21 +5,12 @@
   <mm:content postprocessor="none">
     <mm:cloud>
       <mm:import externid="mode">educations</mm:import>
+
       <mm:link page="/education/js/tree.jsp" referids="mode">
         <script type="text/javascript" src="${_}"> <!-- help IE --></script>
       </mm:link>
       <mm:remove from="session" referid="path" />
       <mm:import externid="education_topmenu_course" />
-      <mm:treefile
-          write="false"
-          objectlist="${includePath}"
-          page="/education/wizards/modes/${mode}.jsp"
-          referids="education_topmenu_course?">
-        <mm:param name="expires">0</mm:param>
-        <script type="text/javascript">
-          <jsp:directive.include file="reloadMode.js" />
-        </script>
-      </mm:treefile>
 
       <div id="mode-${mode}">
         <di:include debug="html" page="/education/wizards/modes/${mode}.jsp" />


Index: index.jsp
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/templates/education/wizards/index.jsp,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -b -r1.33 -r1.34
--- index.jsp   21 Aug 2008 14:22:29 -0000      1.33
+++ index.jsp   22 Aug 2008 15:02:32 -0000      1.34
@@ -18,6 +18,9 @@
     </script>
     -->
     <div class="rows" id="rows">
+
+      <di:include debug="html" page="/education/wizards/javascript.jsp" />
+
       <di:include debug="html" page="/education/wizards/navigation.jspx" />
 
       <div class="mainContent">


Index: navigation.jspx
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/templates/education/wizards/navigation.jspx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- navigation.jspx     1 Feb 2008 14:06:25 -0000       1.1
+++ navigation.jspx     22 Aug 2008 15:02:32 -0000      1.2
@@ -9,4 +9,5 @@
        title="${di:translate('education.editwizards')}" 
alt="${di:translate('education.editwizards')}" />
   <span class="menu_font">Editwizards:</span>
   <mm:treeinclude page="/education/wizards/tree_top_menu.jsp" 
objectlist="$includePath" />
+
 </div>


Index: reloadMode.js
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/templates/education/wizards/reloadMode.js,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- reloadMode.js       22 Aug 2008 11:13:36 -0000      1.2
+++ reloadMode.js       22 Aug 2008 15:02:32 -0000      1.3
@@ -1,13 +1,31 @@
-function reloadMode() {
+
+
+function Reloader() {
+}
+
+Reloader.prototype.reloadMode = function () {
     var url = '${_}';
+    var self = this;
     $.ajax({async: true, url: url, type: "GET", dataType: "xml",
             complete: function(res, status){
                if (status == "success") {
                    document.getElementById('mode-${mode}').innerHTML = 
res.responseText;
                    restoreTree();
                    storeTree();
+                   self.afterReload();
                }
            }
           });
     return false;
 }
+
+Reloader.prototype.afterReload = function () {
+}
+
+
+var reloader = new Reloader();
+
+
+function reloadMode() {
+    reloader.reloadMode();
+}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to