[xwiki-notifications] r10958 - xwiki-products/curriki/trunk/web/src/main/webapp/templates
nmayer (SVN)
notifications at xwiki.org
Tue Jul 1 01:52:01 CEST 2008
Author: nmayer
Date: 2008-07-01 01:52:01 +0200 (Tue, 01 Jul 2008)
New Revision: 10958
Modified:
xwiki-products/curriki/trunk/web/src/main/webapp/templates/lpattachments.vm
Log:
fix for javascript:getAttachmentsExts()
Modified: xwiki-products/curriki/trunk/web/src/main/webapp/templates/lpattachments.vm
===================================================================
--- xwiki-products/curriki/trunk/web/src/main/webapp/templates/lpattachments.vm 2008-06-30 23:46:37 UTC (rev 10957)
+++ xwiki-products/curriki/trunk/web/src/main/webapp/templates/lpattachments.vm 2008-06-30 23:52:01 UTC (rev 10958)
@@ -24,9 +24,9 @@
#set( $total_attachments_names = [] ) ## javascript:getAttachmentsNames()
#set( $total_attachments_exts = [] ) ## javascript:getAttachmentsExts()
#foreach ($attach in $doc.attachmentList) ## {
+ #set( $ok = $total_attachments_names.add("'${attach.filename}'") ) ## append attachment filename to ArrayList
#mimeicon($attach.filename) ## this hack-macro sets ${macro_iconUrl} and ${m_fileExt} as side-effect
- #set( $ok = $total_attachments_names.add("'${attach.filename}'") ) ## append attachment filename to ArrayList
- #set( $ok = $total_attachments_icons.add("'${m_fileExt}'") ) ## append attachment icon to ArrayList
+ #set( $ok = $total_attachments_exts.add("'${m_fileExt}'") ) ## append attachment icon to ArrayList
#set( $total_attachments_size = ${total_attachments_size} + ${attach.getFilesize()} ) ## compute total size of atttachments
#end ## } -- foreach
##
More information about the notifications
mailing list