lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject svn commit: r178187 - /lenya/trunk/src/webapp/lenya/usecases/edit/insertAsset.jx
Date Tue, 24 May 2005 15:12:50 GMT
Author: andreas
Date: Tue May 24 08:12:49 2005
New Revision: 178187

URL: http://svn.apache.org/viewcvs?rev=178187&view=rev
Log:
added size attribute to asset upload

Modified:
    lenya/trunk/src/webapp/lenya/usecases/edit/insertAsset.jx

Modified: lenya/trunk/src/webapp/lenya/usecases/edit/insertAsset.jx
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/usecases/edit/insertAsset.jx?rev=178187&r1=178186&r2=178187&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/usecases/edit/insertAsset.jx (original)
+++ lenya/trunk/src/webapp/lenya/usecases/edit/insertAsset.jx Tue May 24 08:12:49 2005
@@ -42,7 +42,7 @@
         <jx:forEach var="asset" items="${usecase.getParameter('assets')}">
           <tr>
             <td><input type="radio" name="asset" value="${asset.getName()}"
-                       onClick="javascript:insertCaption('${asset.getName()}', '${asset.getMetaDataManager().getDublinCoreMetaData().getFirstValue('title')}',
'${asset.getMimeType()}')"/></td>
+                       onClick="javascript:insertCaption('${asset.getName()}', '${asset.getMetaDataManager().getDublinCoreMetaData().getFirstValue('title')}',
'${asset.getMimeType()}', '${asset.getContentLength() / 1000}')"/></td>
             <td><jx:out value="${asset.getName()}"/></td>
             <td>        
               <jx:set var="mimeType" value="${asset.getMimeType()}"/>
@@ -63,10 +63,11 @@
               <label for="caption"><i18n:text>Caption</i18n:text></label>:
<input class="lenya-form-element" type="text" name="caption"/>
               <input type="hidden" name="type" value=""/>
               <input type="hidden" name="assetName" value=""/>
+              <input type="hidden" name="assetSize" value=""/>
             </div>
             <div style="margin: 10px">
               <input i18n:attr="value" type="submit" name="submit" value="Submit"
-                     onClick="javascript:insertImage('${usecase.getParameter('document').getName()}');"
/>
+                     onClick="javascript:${usecase.getView().getParameter('callbackFunction')}('${usecase.getParameter('document').getName()}');"
/>
               &#160;
               <input i18n:attr="value" type="submit" name="cancel" value="Cancel"
                      onClick="location.href='javascript:window.close();';" />
@@ -111,4 +112,4 @@
        </form>
      </jx:if>
   </page:body>
-</page:page>
\ No newline at end of file
+</page:page>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org


Mime
View raw message