summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2010-05-25 08:11:23 +0000
committerthomascube <thomas@roundcube.net>2010-05-25 08:11:23 +0000
commit3831efb452719bf127258b83f01f58709019e219 (patch)
treeeb10a4789925a1bcaa087dee6a767f0f8fae6ca4
parentfb466386ccbf097be04b10d9d5f48d3d815ee1a2 (diff)
Better jqueryfication
-rw-r--r--program/js/app.js7
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] });
};