summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2013-12-23 02:59:20 -0800
committerAleksander Machniak <alec@alec.pl>2013-12-23 02:59:20 -0800
commitb3c034ce300416312df033ea9114b20874ab478c (patch)
treefa48b897460f22be813e1a2cb7d3373b909aabe1 /program
parentac0fc383fd43e8955b0ab22f70463159b14c74b0 (diff)
parent9a8873270f5505327e832560ddadec56e25e7624 (diff)
Merge pull request #157 from JohnDoh/trigger-insertrow
trigger insertrow JS event from compose screen address book widget
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index a001a3bff..4c9b11a1f 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -313,6 +313,7 @@ function rcube_webmail()
if (this.gui_objects.contactslist) {
this.contact_list = new rcube_list_widget(this.gui_objects.contactslist,
{ multiselect:true, draggable:false, keyboard:false });
+ this.contact_list.row_init = function(row){ p.triggerEvent('insertrow', { cid:row.uid, row:row }); };
this.contact_list.addEventListener('select', function(o){ ref.compose_recipient_select(o); });
this.contact_list.addEventListener('dblclick', function(o){ ref.compose_add_recipient('to'); });
this.contact_list.init();