From 3831efb452719bf127258b83f01f58709019e219 Mon Sep 17 00:00:00 2001 From: thomascube Date: Tue, 25 May 2010 08:11:23 +0000 Subject: Better jqueryfication --- program/js/app.js | 7 ++++--- 1 file 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 = $('').attr('href', '#') .bind('click', function() { return rcmail.command('listgroup', prop, this);}) .html(prop.name); - var li = $('
  • ').attr('id', 'rcmli'+key).addClass('contactgroup').append(link); - var pli = this.get_folder_li(prop.source) - $(li).insertAfter(pli); + var 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] }); }; -- cgit v1.2.3