alecpl
2009-04-16 c0b82242b093ec5fa2f353fe2d4f8d85f18b0e0a
program/js/common.js
@@ -602,33 +602,38 @@
roundcube_browser.prototype.get_cookie = getCookie;
// tiny replacement for Firebox functionality
function rcube_console()
{
  this.log = function(msg)
  {
    box = rcube_find_object('console');
    var box = rcube_find_object('console');
    if (box)
    if (box) {
      if (msg.charAt(msg.length-1)=='\n')
        box.value += msg+'--------------------------------------\n';
   msg += '--------------------------------------\n';
      else
        box.value += msg+'\n--------------------------------------\n';
        msg += '\n--------------------------------------\n';
      // Konqueror doesn't allows to just change value of hidden element
      if (bw.konq) {
        box.innerText += msg;
        box.value = box.innerText;
      } else
        box.value += msg;
    }
  };
  this.reset = function()
  {
    box = rcube_find_object('console');
    var box = rcube_find_object('console');
    if (box)
      box.value = '';
      box.innerText = box.value = '';
  };
}
var bw = new roundcube_browser();
if (!window.console)
  console = new rcube_console();
var console = new rcube_console();
// Add escape() method to RegExp object