diff options
Diffstat (limited to 'program/js')
-rw-r--r-- | program/js/app.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/program/js/app.js b/program/js/app.js index 7cf6efcbd..9b22eb24c 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3837,9 +3837,10 @@ function rcube_webmail() var link = $('<a>').attr('href', '#') .bind('click', function() { return rcmail.command('listgroup', prop, this);}) .html(prop.name); - var li = $('<li>').attr('id', 'rcmli'+key).addClass('contactgroup').append(link); - var pli = this.get_folder_li(prop.source) - $(li).insertAfter(pli); + var li = $('<li>').attr('id', 'rcmli'+key) + .addClass('contactgroup') + .append(link) + .insertAfter(this.get_folder_li(prop.source)); this.triggerEvent('insertgroup', { id:prop.id, source:prop.source, name:prop.name, li:li[0] }); }; |