- fixed not working debug console (was initialized before html object creation)

- fixed separator in debug console
release-0.6
alecpl 17 years ago
parent 6051e6c189
commit 7155539ffd

@ -579,18 +579,21 @@ roundcube_browser.prototype.get_cookie = getCookie;
// tiny replacement for Firebox functionality
function rcube_console()
{
this.box = rcube_find_object('console');
this.log = function(msg)
{
if (this.box)
this.box.value += str+'\n--------------------------------------\n';
box = rcube_find_object('console');
if (box)
if (msg[msg.length-1]=='\n')
box.value += msg+'--------------------------------------\n';
else
box.value += msg+'\n--------------------------------------\n';
};
this.reset = function()
{
if (this.box)
this.box.value = '';
box = rcube_find_object('console');
if (box)
box.value = '';
};
}

Loading…
Cancel
Save