From 4b8a0ab1373c7af1488c38352545d8cab7330e40 Mon Sep 17 00:00:00 2001 From: thomasb Date: Sat, 28 Apr 2007 18:07:12 +0000 Subject: Merged branch devel-addressbook from r443 back to trunk git-svn-id: https://svn.roundcube.net/trunk@543 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/common.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'roundcubemail/program/js/common.js') 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(); -- cgit v1.2.3