diff options
author | alecpl <alec@alec.pl> | 2011-03-15 08:24:19 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-03-15 08:24:19 +0000 |
commit | 129aeff1991a37c4877fd6bf03825e084fe821fc (patch) | |
tree | 9f43f2e6110559d26e5d177d67bcefd2ed184bdd /program/js/app.js | |
parent | 3e63a0b898ecfdca5600ed6c56397048fd463453 (diff) |
- Move console initialization to rcube.init(), hide console area if browser's console exists, some code cleanup
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js index fdd9d9c97..f81f8d5ee 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -135,6 +135,14 @@ function rcube_webmail() return; } + // Enable debug console + if (!window.console) { + console = new rcube_console(); + } + else { + $('#console').hide(); + } + // find all registered gui containers for (var n in this.gui_containers) this.gui_containers[n] = $('#'+this.gui_containers[n]); |