Pass an element index to the list_callback in entity_selector()

pull/6274/head
Aleksander Machniak 7 years ago
parent ad425aa3e0
commit 89715b040b

@ -8540,9 +8540,9 @@ function rcube_webmail()
link.className = 'icon'; link.className = 'icon';
// loop over entity list // loop over entity list
$.each(entity_list, function() { $.each(entity_list, function(i) {
var a = $(link.cloneNode(false)).attr('rel', this.id); var a = $(link.cloneNode(false)).attr('rel', this.id);
rows.push(list_callback(this, a)); rows.push(list_callback(this, a, i));
}); });
ul.append(rows).appendTo(container); ul.append(rows).appendTo(container);

Loading…
Cancel
Save