Better jqueryfication

release-0.6
thomascube 15 years ago
parent fb466386cc
commit 3831efb452

@ -3837,9 +3837,10 @@ function rcube_webmail()
var link = $('<a>').attr('href', '#') var link = $('<a>').attr('href', '#')
.bind('click', function() { return rcmail.command('listgroup', prop, this);}) .bind('click', function() { return rcmail.command('listgroup', prop, this);})
.html(prop.name); .html(prop.name);
var li = $('<li>').attr('id', 'rcmli'+key).addClass('contactgroup').append(link); var li = $('<li>').attr('id', 'rcmli'+key)
var pli = this.get_folder_li(prop.source) .addClass('contactgroup')
$(li).insertAfter(pli); .append(link)
.insertAfter(this.get_folder_li(prop.source));
this.triggerEvent('insertgroup', { id:prop.id, source:prop.source, name:prop.name, li:li[0] }); this.triggerEvent('insertgroup', { id:prop.id, source:prop.source, name:prop.name, li:li[0] });
}; };

Loading…
Cancel
Save