alecpl
2009-04-15 a83697a501b8303408f1329ef724be1ab8736af7
- fix console for Konqueror


1 files modified
20 ■■■■ changed files
program/js/common.js 20 ●●●● patch | view | raw | blame | history
program/js/common.js
@@ -608,20 +608,28 @@
{
  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 (Safari also?) 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 = '';
  };
}