[Erp5-report] r44225 leonardo - in /erp5/trunk/bt5/erp5_dhtml_style: SkinTemplateItem/porta...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 14 10:44:31 CET 2011


Author: leonardo
Date: Mon Mar 14 10:44:31 2011
New Revision: 44225

URL: http://svn.erp5.org?rev=44225&view=rev
Log:
Automatically scroll the live test textarea to the bottom when new content is added

Modified:
    erp5/trunk/bt5/erp5_dhtml_style/SkinTemplateItem/portal_skins/erp5_dhtml_style/live_test.js.xml
    erp5/trunk/bt5/erp5_dhtml_style/bt/revision

Modified: erp5/trunk/bt5/erp5_dhtml_style/SkinTemplateItem/portal_skins/erp5_dhtml_style/live_test.js.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dhtml_style/SkinTemplateItem/portal_skins/erp5_dhtml_style/live_test.js.xml?rev=44225&r1=44224&r2=44225&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dhtml_style/SkinTemplateItem/portal_skins/erp5_dhtml_style/live_test.js.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_dhtml_style/SkinTemplateItem/portal_skins/erp5_dhtml_style/live_test.js.xml [utf8] Mon Mar 14 10:44:31 2011
@@ -12,7 +12,7 @@
         </item>
         <item>
             <key> <string>_EtagSupport__etag</string> </key>
-            <value> <string>ts99744741.3</string> </value>
+            <value> <string>ts00095498.85</string> </value>
         </item>
         <item>
             <key> <string>__name__</string> </key>
@@ -52,13 +52,16 @@
     });\n
     var last_call = false;\n
     var data_size = 0;\n
+    var data_textarea = undefined;\n
     get_data = function() {\n
       return $.get(my_url_read_test,\n
               {position : data_size},\n
               function(data){\n
                 if ( data.length != undefined ) {\n
                   data_size = data_size + data.length;\n
-                  jQuery("*[name=\'field_your_text_output\']")[0].defaultValue += data ;\n
+                  data_textarea = jQuery("*[name=\'field_your_text_output\']")[0];\n
+                  data_textarea.defaultValue += data;\n
+                  data_textarea.scrollTop = data_textarea.scrollHeight;\n
                 }\n
                 if (continue_loop == true) {\n
                   setTimeout("get_data()",1000);\n
@@ -83,7 +86,7 @@
         </item>
         <item>
             <key> <string>size</string> </key>
-            <value> <int>1658</int> </value>
+            <value> <int>1813</int> </value>
         </item>
         <item>
             <key> <string>title</string> </key>

Modified: erp5/trunk/bt5/erp5_dhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_dhtml_style/bt/revision?rev=44225&r1=44224&r2=44225&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_dhtml_style/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_dhtml_style/bt/revision [utf8] Mon Mar 14 10:44:31 2011
@@ -1 +1 @@
-10
\ No newline at end of file
+11
\ No newline at end of file



More information about the Erp5-report mailing list