You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by hu...@apache.org on 2012/07/19 10:13:21 UTC
svn commit: r1363258 -
/trafficserver/site/trunk/content/logbuilder/index.html
Author: humbedooh
Date: Thu Jul 19 08:13:21 2012
New Revision: 1363258
URL: http://svn.apache.org/viewvc?rev=1363258&view=rev
Log:
fix moving of plain text in the xml output window so it doesn't cause 'null' to be added to the string
Modified:
trafficserver/site/trunk/content/logbuilder/index.html
Modified: trafficserver/site/trunk/content/logbuilder/index.html
URL: http://svn.apache.org/viewvc/trafficserver/site/trunk/content/logbuilder/index.html?rev=1363258&r1=1363257&r2=1363258&view=diff
==============================================================================
--- trafficserver/site/trunk/content/logbuilder/index.html (original)
+++ trafficserver/site/trunk/content/logbuilder/index.html Thu Jul 19 08:13:21 2012
@@ -119,6 +119,7 @@ function addToLog(id, name, needsInput)
span.setAttribute("ondragstart", "dragIt(event, 'input');");
var escaped = ar[i].replace(/(?!\\)"/g, "\\\"").replace(/\\\\"/g, "\\\"");
var txt = document.createTextNode(escaped + " ");
+ span.setAttribute("DATA", ar[i]);
span.appendChild(txt);
xml.appendChild(span);
var xspan = document.createElement("div");