diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-05-08 15:31:07 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-05-08 15:31:07 +0200 |
commit | 3cf97b112be8aaafe27f4aa3d05c69bf1e3d961c (patch) | |
tree | b2925a8306ca14996e12ff4e3e66b178430c0eec /program/js | |
parent | 7079110c61d41020912baab91cef8b3a3acdb577 (diff) |
Remove unused 'foldertray' container
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/program/js/app.js b/program/js/app.js index 86e6739f4..f6acdf87e 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -528,23 +528,19 @@ function rcube_webmail() if (this.pending_message) this.display_message(this.pending_message[0], this.pending_message[1], this.pending_message[2]); - // map implicit containers - if (this.gui_objects.folderlist) { - this.gui_containers.foldertray = $(this.gui_objects.folderlist); - - // init treelist widget - if (window.rcube_treelist_widget) { - this.treelist = new rcube_treelist_widget(this.gui_objects.folderlist, { + // init treelist widget + if (this.gui_objects.folderlist && window.rcube_treelist_widget) { + this.treelist = new rcube_treelist_widget(this.gui_objects.folderlist, { id_prefix: 'rcmli', id_encode: this.html_identifier_encode, id_decode: this.html_identifier_decode, check_droptarget: function(node) { return !node.virtual && ref.check_droptarget(node.id) } - }); - this.treelist - .addEventListener('collapse', function(node) { ref.folder_collapsed(node) }) - .addEventListener('expand', function(node) { ref.folder_collapsed(node) }) - .addEventListener('select', function(node) { ref.triggerEvent('selectfolder', { folder:node.id, prefix:'rcmli' }) }); - } + }); + + this.treelist + .addEventListener('collapse', function(node) { ref.folder_collapsed(node) }) + .addEventListener('expand', function(node) { ref.folder_collapsed(node) }) + .addEventListener('select', function(node) { ref.triggerEvent('selectfolder', { folder:node.id, prefix:'rcmli' }) }); } // activate html5 file drop feature (if browser supports it and if configured) |