diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-04-28 18:07:12 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2007-04-28 18:07:12 +0000 |
| commit | 4b8a0ab1373c7af1488c38352545d8cab7330e40 (patch) | |
| tree | 463b2c8457680769a98dc5144a09fb600f454f19 /roundcubemail/program/js/common.js | |
| parent | 1d33c02139d4cbb424a7d720723c353d0580b1f2 (diff) | |
Merged branch devel-addressbook from r443 back to trunk
git-svn-id: https://svn.roundcube.net/trunk@543 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/common.js')
| -rw-r--r-- | roundcubemail/program/js/common.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/roundcubemail/program/js/common.js b/roundcubemail/program/js/common.js index be9a131c2..d9216a58d 100644 --- a/roundcubemail/program/js/common.js +++ b/roundcubemail/program/js/common.js @@ -602,4 +602,25 @@ function getCookie(name) 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'; + }; + + this.reset = function() + { + if (this.box) + this.box.value = ''; + }; +} + var bw = new roundcube_browser(); + +if (!window.console) + console = new rcube_console(); |
