Normalize group list-item identifier when inserting a new address group

release-0.6
thomascube 14 years ago
parent d80bd153a4
commit ed33d19de9

@ -3947,7 +3947,7 @@ 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) var li = $('<li>').attr('id', 'rcmli'+key.replace(this.identifier_expr, '_'))
.addClass('contactgroup') .addClass('contactgroup')
.append(link) .append(link)
.insertAfter(this.get_folder_li(prop.source)); .insertAfter(this.get_folder_li(prop.source));

Loading…
Cancel
Save