Update of 
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/resources
In directory 
james.mmbase.org:/tmp/cvs-serv15399/cmsc/contentrepository/src/webapp/editors/resources

Modified Files:
        imageinfo.jsp 
Log Message:
CMSC-1004 - Better code.


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/resources
See also: http://www.mmbase.org/jira/browse/CMSC-1004


Index: imageinfo.jsp
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer/cmsc/contentrepository/src/webapp/editors/resources/imageinfo.jsp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- imageinfo.jsp       9 Jul 2008 12:16:24 -0000       1.4
+++ imageinfo.jsp       9 Jul 2008 12:24:37 -0000       1.5
@@ -21,11 +21,11 @@
                                <mm:node number="${param.objectnumber}">
                                        <div style="float:left">
                      <mm:field name="width" jspvar="width" write="false"/>
-                     <img src="
                      <c:choose>
-                        <c:when test="${width gt 430}"><mm:image 
template="s(430)"/></c:when>
-                        <c:otherwise><mm:image/></c:otherwise>
-                     </c:choose>" alt="<mm:field name="description" />" /><br/>
+                        <c:when test="${width gt 430}"><mm:image 
template="s(430)" jspvar="imageSource" write="false"/></c:when>
+                        <c:otherwise><mm:image jspvar="imageSource" 
write="false"/></c:otherwise>
+                     </c:choose>
+                     <img src="${imageSource}" alt="<mm:field 
name="description" />" /><br/>
                                </div>
                                <div style="float:left; padding:5px;">
                                    <h1><mm:field name="filename"/></h1>
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to