Update of /var/cvs/contributions/didactor2/src/education/templates/education/js
In directory james.mmbase.org:/tmp/cvs-serv7582/education/js
Modified Files:
frontend_tree.jsp
Log Message:
a less javascripty way to determin which jsp to use to show which content
See also:
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/education/templates/education/js
Index: frontend_tree.jsp
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/education/templates/education/js/frontend_tree.jsp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- frontend_tree.jsp 3 Mar 2008 16:02:01 -0000 1.28
+++ frontend_tree.jsp 14 Mar 2008 16:28:09 -0000 1.29
@@ -262,24 +262,9 @@
}
currentel = el;
- var href;
- switch ( type ) {
- case "educations":
- href = addParameter('<mm:treefile page="/education/educations.jsp"
objectlist="$includePath" referids="$referids" escapeamps="false"/>',
'edu='+number);
- break;
- case "tests":
- href= addParameter('<mm:treefile page="/education/tests/index.jsp"
objectlist="$includePath" referids="$referids,fb_madetest?,justposted?"
escapeamps="false"/>', 'learnobject='+number);
- break;
- case "pages":
- href= addParameter('<mm:treefile page="/education/pages/index.jsp"
objectlist="$includePath" referids="$referids,fb_madetest?"
escapeamps="false"/>', 'learnobject='+number);
- break;
- case "flashpages":
- href= addParameter('<mm:treefile
page="/education/flashpages/index.jsp" objectlist="$includePath"
referids="$referids,fb_madetest?" escapeamps="false"/>', 'learnobject='+number);
- break;
- default:
- href= addParameter('<mm:treefile
page="/education/learnblocks/index.jsp" objectlist="$includePath"
referids="$referids,fb_madetest?" escapeamps="false"/>', 'learnobject='+number);
- break;
- }
+
+
+ var href = addParameter(addParameter('<mm:url page="/content/" />',
'object=' + number), 'type=' + type);
requestContent(href);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs