diff options
Diffstat (limited to 'frontend/js/debug.js.php')
-rw-r--r-- | frontend/js/debug.js.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/js/debug.js.php b/frontend/js/debug.js.php index 5e33ce8..cc28959 100644 --- a/frontend/js/debug.js.php +++ b/frontend/js/debug.js.php @@ -14,13 +14,14 @@ function debug (subtype, text) { } text+=""; text=text.replace(/(\r\n|\r|\n)/g,'<br/>'); + text=text.replace(/ /g, ' '); if (debugrow > 0) { hidedebug(debugrow); } div=document.createElement('div'); div.className='debug '+(++debugrow%2?'odd':'even'); div.id='debug'+debugrow; - big=text.match('<br') || text.length > 100; + big=text.match('<br') || text.length > 150; div.innerHTML='<span class="type'+(big?' pointer" onclick="toggledebug('+debugrow+')':'')+'">'+(big?'<img id="debugmanager'+debugrow+'" src="'+url('images/minusbox.gif')+'" alt="[Hide]" /> ':'')+(subtype!=null?subtype+':':'')+'</span><span> '+text+'</span>'; document.getElementById("debugbox").appendChild(div); document.getElementById("debugcount").childNodes[0].nodeValue=debugrow; |