cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jer...@apache.org
Subject svn commit: r477659 - in /cocoon: branches/BRANCH_2_1_X/ trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/resources/js/ trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/system/ trunk...
Date Tue, 21 Nov 2006 12:59:53 GMT
Author: jeremy
Date: Tue Nov 21 04:59:52 2006
New Revision: 477659

URL: http://svn.apache.org/viewvc?view=rev&rev=477659
Log:
Updating project status.
Progress bar now shows KB instead of Bytes.
Progress bar text now clips properly, if the bar is too short to show everything.

Modified:
    cocoon/branches/BRANCH_2_1_X/status.xml
    cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/resources/js/FormUploadProgress.js
    cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/system/System.Upload.js
    cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/system/i18n/messages.xml

Modified: cocoon/branches/BRANCH_2_1_X/status.xml
URL: http://svn.apache.org/viewvc/cocoon/branches/BRANCH_2_1_X/status.xml?view=diff&rev=477659&r1=477658&r2=477659
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/status.xml (original)
+++ cocoon/branches/BRANCH_2_1_X/status.xml Tue Nov 21 04:59:52 2006
@@ -184,6 +184,17 @@
   <release version="@version@" date="@date@">
 -->
   <release version="2.1.10" date="TBD">
+    <action dev="JQ" type="add">
+      Ajax: upload progress bar widget.<br/>
+      <ul>
+        <li>A new dojo widget to display file upload progress for forms (and cforms).</li>
+        <li>Ajax-enabled cforms can now submit file-upload fields in the background.</li>
+        <li>New system pipelines for Blocks (/_cocoon/system/[blockname]/**).</li>
+        <li>Sitemaps can now call flowscripts written in a static namespaced style.</li>
+        <li>Added JSON Serialization utilities for flowscript.</li>
+        <li>You can now get i18n translations from Stings in flowscript.</li>
+        </ul>
+    </action>
     <action dev="VG" type="add">
       Core: Add ability to pre-load i18n catalogues in I18nTransformer.
       Removed references to defunct cache-on-startup configuration.

Modified: cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/resources/js/FormUploadProgress.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/resources/js/FormUploadProgress.js?view=diff&rev=477659&r1=477658&r2=477659
==============================================================================
--- cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/resources/js/FormUploadProgress.js
(original)
+++ cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/resources/js/FormUploadProgress.js
Tue Nov 21 04:59:52 2006
@@ -46,9 +46,9 @@
         isContainer: true,
         templateString: '<div class="FormUpload">' +
                             '<div class="FormUploadUser" dojoAttachPoint="containerNode"></div>'
+ 
-                            '<div class="FormUploadProgress" style="border:1px solid #336699;margin:2px;height:
16px">' +
-                                '<div style="width:0px;background:#BFCCDF;position:relative;"
class="bar" dojoAttachPoint="barNode">&nbsp;</div>' + 
-                                '<div style="color:#336699;position:relative;left:0px;top:-16px;background:
none;padding: 2px;font-size:10px;" class="data" dojoAttachPoint="msgNode">&nbsp;</div>'
+ 
+                            '<div class="FormUploadProgress" style="border:1px solid #336699;margin:2px;height:
16px;position:relative;">' +
+                                '<div style="width:0px;background:#BFCCDF;position:absolute;top:0;left:0;width:0;right:0;"
class="bar" dojoAttachPoint="barNode">&nbsp;</div>' + 
+                                '<div style="color:#336699;position:absolute;top:0;left:0;bottom:0;right:0;background:none;padding:2px;font-size:10px;overflow:hidden;"
class="data" dojoAttachPoint="msgNode">&nbsp;</div>' + 
                             '</div>' +
                          '</div>',
                         

Modified: cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/system/System.Upload.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/system/System.Upload.js?view=diff&rev=477659&r1=477658&r2=477659
==============================================================================
--- cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/system/System.Upload.js
(original)
+++ cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/system/System.Upload.js
Tue Nov 21 04:59:52 2006
@@ -54,8 +54,8 @@
     if (status instanceof Map && status.size() > 0) {
         var tempMap = new HashMap();
         tempMap.putAll(status);
-        var sent = status.get("sent").intValue();
-        var total = status.get("total").intValue();
+        var sent = Math.ceil(status.get("sent").intValue()/1024);
+        var total = Math.ceil(status.get("total").intValue()/1024);
         var catalogue;
         try {
             i18n = cocoon.getComponent(BundleFactory.ROLE);

Modified: cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/system/i18n/messages.xml
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/system/i18n/messages.xml?view=diff&rev=477659&r1=477658&r2=477659
==============================================================================
--- cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/system/i18n/messages.xml
(original)
+++ cocoon/trunk/blocks/cocoon-ajax/cocoon-ajax-impl/src/main/resources/org/apache/cocoon/ajax/system/i18n/messages.xml
Tue Nov 21 04:59:52 2006
@@ -25,8 +25,8 @@
 -->
 <catalogue>
    
-   <message key="progress.finished">Upload Completed. Files: {0}. Data sent: {1} bytes.</message>
-   <message key="progress.sent">Sent: {0}% ({1} of {2} bytes). Filename: {3}.</message>
+   <message key="progress.finished">Upload Completed. Files: {0}. Data sent: {1} KB.</message>
+   <message key="progress.sent">Sent: {0}% ({1} of {2} KB). Filename: {3}.</message>
    <message key="progress.ready">Ready.</message>
    <message key="progress.connecting">Connecting ...</message>
    <message key="progress.title">Upload Progress:</message>



Mime
View raw message