Commit 0b21d848 authored by Sebastien Robin's avatar Sebastien Robin

fix strange output of live test when readTestOutput returns nothing

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44093 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f40ad188
......@@ -12,7 +12,7 @@
</item>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts87699145.73</string> </value>
<value> <string>ts99744741.3</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
......@@ -25,7 +25,6 @@
<item>
<key> <string>data</string> </key>
<value> <string>$(document).ready(function(){\n
\n
\n
var my_url_run_test = $(document)[0].baseURI + \'runLiveTest\'\n
var my_url_read_test = $(document)[0].baseURI + \'readTestOutput\'\n
......@@ -57,9 +56,10 @@
return $.get(my_url_read_test,\n
{position : data_size},\n
function(data){\n
//$("#" + \'live_test_output\').append(data);\n
jQuery("*[name=\'field_your_text_output\']")[0].defaultValue += data ;\n
if ( data.length != undefined ) {\n
data_size = data_size + data.length;\n
jQuery("*[name=\'field_your_text_output\']")[0].defaultValue += data ;\n
}\n
if (continue_loop == true) {\n
setTimeout("get_data()",1000);\n
}\n
......@@ -83,7 +83,7 @@
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1647</int> </value>
<value> <int>1658</int> </value>
</item>
<item>
<key> <string>title</string> </key>
......
9
\ No newline at end of file
10
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment