Update of
/var/cvs/contributions/didactor2/src/education/templates/education/wizards
In directory james.mmbase.org:/tmp/cvs-serv31081/wizards
Modified Files:
wizard.js
Log Message:
cookieid was lost (because not in jsp any more)
See also:
http://cvs.mmbase.org/viewcvs/contributions/didactor2/src/education/templates/education/wizards
Index: wizard.js
===================================================================
RCS file:
/var/cvs/contributions/didactor2/src/education/templates/education/wizards/wizard.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- wizard.js 15 Jan 2009 11:46:24 -0000 1.1
+++ wizard.js 15 Jan 2009 12:19:44 -0000 1.2
@@ -1,8 +1,9 @@
function WizardTree() {
- this.setupTree();
this.mode = $("body").attr("class").replace(/editwizards/, '').trim();
+ this.education = $("html head
meta[name='Didactor-Education']").attr("content");
+ this.setupTree();
}
WizardTree.prototype.reloadMode = function () {
@@ -20,11 +21,12 @@
}
WizardTree.prototype.setupTree = function() {
+ var self = this;
$(document).ready(function() {
$('ul.treeview').treeview({
collapsed: true,
persist: "cookie",
- cookieId: "treeview_${e}_${mode}",
+ cookieId: "treeview_" + self.education + "_" + self.mode,
cookieOptions: {expires: 100}
}
);
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs