dpillot 2005/11/30 18:07:06 CET
Modified files:
src/view/jsp actions.js
Log:
list pickers in actionmenu
Revision Changes Path
1.14 +11 -5 corporate_portal_templates/src/view/jsp/actions.js
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/corporate_portal_templates/src/view/jsp/actions.js.diff?r1=1.13&r2=1.14&f=h
Index: actions.js
===================================================================
RCS file:
/home/cvs/repository/corporate_portal_templates/src/view/jsp/actions.js,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- actions.js 29 Nov 2005 09:51:31 -0000 1.13
+++ actions.js 30 Nov 2005 17:07:06 -0000 1.14
@@ -621,11 +621,17 @@
var i;
for (i = 0; i < methods.length; i++) {
- if (methods[i].length > 0) {
- // alert ("Adding action: '" + methods[i] + "' in div " + id);
- content += printLauncher(launchers[i]) + printImage(images[i]) +
- printMethod(methods[i]);
- }
+ if(methods[i]=="copies"){
+ //specific code to display the list of pickers
+ var parts=launchers[i].split(",")
+ p=false
+ if(parts.length>1) p=parts[1]
+
+ content +="<a class=\"menuItem\" href=\""+parts[3]+"\"
title=\"id:"+parts[0]+"\"><i> "+parts[2]+"</i></a>"
+ } else {
+ content += printLauncher(launchers[i]) +
printImage(images[i]) + printMethod(methods[i]);
+ }
+
}
menuDiv.innerHTML = content;
}