|
From: <tre...@us...> - 2008-02-21 21:07:10
|
Revision: 763
http://ogoglio.svn.sourceforge.net/ogoglio/?rev=763&view=rev
Author: trevorolio
Date: 2008-02-21 13:07:04 -0800 (Thu, 21 Feb 2008)
Log Message:
-----------
Tweak the attachment list to be an actual ul with an id for easier CSS reference.
Modified Paths:
--------------
maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js
Modified: maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js
===================================================================
--- maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js 2008-02-21 05:32:43 UTC (rev 762)
+++ maven/trunk/ogoglio-server/src/main/resources/siteTemplates/body.js 2008-02-21 21:07:04 UTC (rev 763)
@@ -222,7 +222,7 @@
}
function writeAttachmentControls(){
- var attachmentHTML = "<ul>";
+ var attachmentHTML = "<ul id='attachmentList'>";
var bodyDataDisplayName = bodyDataXML.getAttribute("displayname");
for(var i=0; i < attachmentTemplateListXML.childNodes.length; i++){
var node = attachmentTemplateListXML.childNodes[i];
@@ -233,11 +233,12 @@
var templateID = +node.getAttribute("templateid");
var ownerUsername = node.getAttribute("ownerusername");
- attachmentHTML += "<br/>" + escapeHTML(displayName);
+ attachmentHTML += "<li>" + escapeHTML(displayName);
var attachmentID = getAttachmentID(templateID);
var selected = attachmentID == -1 ? "" : " checked='checked'";
attachmentHTML += " <form onsubmit='return false;'><input onchange='goAttachmentChange(\"" + ownerUsername + "\", " + templateID + ");' name='" + templateID + "' type='checkbox' " + selected + " /></form>";
+ attachmentHTML += "</li>";
}
attachmentHTML += "</ul>";
if(attachmentTemplateListXML.childNodes.length == 0){
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|