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

Modified Files:
        index.jsp tree_top_menu.jsp 
Added Files:
        style.css 
Log Message:
will replace this horrible tree stuff with jquery-tree


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


style.css is new



Index: index.jsp
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/templates/education/wizards/index.jsp,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- index.jsp   17 Nov 2008 10:48:29 -0000      1.36
+++ index.jsp   9 Jan 2009 16:56:03 -0000       1.37
@@ -5,19 +5,31 @@
           xmlns:di="http://www.didactor.nl/ditaglib_1.0";
           >
   <di:html
-      type="text/html"
+      type="application/xhtml+xml"
       styleClass="editwizards"
       component="education.wizards"
       title_key="education.editwizards"
+      css="/education/wizards/style.css"
       rank="editor" expires="0">
 
-    <!--
-    <script type="text/javascript">
+    <mm:link page="/core/js/jquery-treeview/lib/jquery.cookie.js">
+      <script src="${_}" type="text/javascript"><jsp:text> </jsp:text></script>
+    </mm:link>
+
+    <mm:link page="/core/js/jquery-treeview/jquery.treeview.pack.js">
+      <script type="text/javascript" src="${_}"><jsp:text> </jsp:text></script>
+    </mm:link>
 
-      addEventHandler(window, 'load', loadTree);
-      addEventHandler(window, 'unload', storeTree);
+    <script type="text/javascript">
+      $(document).ready(function() {
+        $('ul.tree').treeview({
+          collapsed: true,
+          persist: "cookie"
+        }
+        );
+      });
     </script>
-    -->
+
     <div class="rows" id="rows">
 
       <di:include debug="html" page="/education/wizards/javascript.jsp" />


Index: tree_top_menu.jsp
===================================================================
RCS file: 
/var/cvs/contributions/didactor2/src/education/templates/education/wizards/tree_top_menu.jsp,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -b -r1.52 -r1.53
--- tree_top_menu.jsp   7 Nov 2008 16:30:21 -0000       1.52
+++ tree_top_menu.jsp   9 Jan 2009 16:56:03 -0000       1.53
@@ -153,7 +153,7 @@
             <script>
               function chooseEducation(eid) {
               if (eid != 0) {
-              document.location.href = "?mode=educations&amp;e=" + eid;
+              document.location.href = "?mode=educations&amp;amp;e=" + eid;
               }
               }
             </script>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to