lenya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andr...@apache.org
Subject svn commit: r178185 - /lenya/trunk/src/webapp/lenya/resources/javascript/usecases/edit/insertAsset.js
Date Tue, 24 May 2005 15:12:21 GMT
Author: andreas
Date: Tue May 24 08:12:20 2005
New Revision: 178185

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

Modified:
    lenya/trunk/src/webapp/lenya/resources/javascript/usecases/edit/insertAsset.js

Modified: lenya/trunk/src/webapp/lenya/resources/javascript/usecases/edit/insertAsset.js
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/resources/javascript/usecases/edit/insertAsset.js?rev=178185&r1=178184&r2=178185&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/resources/javascript/usecases/edit/insertAsset.js (original)
+++ lenya/trunk/src/webapp/lenya/resources/javascript/usecases/edit/insertAsset.js Tue May
24 08:12:20 2005
@@ -1,5 +1,14 @@
    ext = '';
    
+   function insertAsset(nodeid) {
+      var src = document.forms['image'].assetName.value;
+      var title = document.forms['image'].caption.value;
+      var type = document.forms['image'].type.value;
+      var size = document.forms['image'].assetSize.value;
+      window.opener.bxe_insertContent('<asset xmlns="http://apache.org/cocoon/lenya/page-envelope/1.0"
src="'+src+'" size="'+size+'" type="'+type+'">'+title+'</asset>',window.opener.BXE_SELECTION,window.opener.BXE_SPLIT_IF_INLINE);
+      window.close();
+    }
+   
    function insertImage(nodeid) { 
       // var link = document.forms['image'].link.value;
       var link = '';
@@ -11,9 +20,10 @@
       window.close();
    }
 
-   function insertCaption(name, caption, type) { 
+   function insertCaption(name, caption, type, size) { 
      document.forms['image'].assetName.value = name;
      document.forms['image'].caption.value = caption;
      document.forms['image'].type.value = type;
+     document.forms['image'].assetSize.value = size;
      focus(); 
    } 



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


Mime
View raw message