From fc1b7226b4b0e0226e9a176d39e2dc94c6cddc1a Mon Sep 17 00:00:00 2001 From: alecpl Date: Fri, 28 May 2010 17:58:38 +0000 Subject: - Renamed events for groups handling, insertgroup -> group_insert, updategroup -> group_update, removegroup -> group_delete --- program/js/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'program/js') diff --git a/program/js/app.js b/program/js/app.js index 5abba1bc8..fbbae4a0b 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -3779,7 +3779,7 @@ function rcube_webmail() { var li, key = 'G'+prop.source+prop.id; if ((li = this.get_folder_li(key))) { - this.triggerEvent('removegroup', { source:prop.source, id:prop.id, li:li }); + this.triggerEvent('group_delete', { source:prop.source, id:prop.id, li:li }); li.parentNode.removeChild(li); delete this.env.contactfolders[key]; @@ -3851,7 +3851,7 @@ function rcube_webmail() .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('group_insert', { id:prop.id, source:prop.source, name:prop.name, li:li[0] }); }; // callback for renaming a contact group @@ -3865,7 +3865,7 @@ function rcube_webmail() link.innerHTML = prop.name; this.env.contactfolders[key].name = this.env.contactgroups[key].name = name; - this.triggerEvent('updategroup', { id:prop.id, source:prop.source, name:prop.name, li:li[0] }); + this.triggerEvent('group_update', { id:prop.id, source:prop.source, name:prop.name, li:li[0] }); }; -- cgit v1.2.3