diff options
author | alecpl <alec@alec.pl> | 2010-05-28 17:58:38 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-05-28 17:58:38 +0000 |
commit | fc1b7226b4b0e0226e9a176d39e2dc94c6cddc1a (patch) | |
tree | 7efe9ca0abf2a216742f0938f0e9aa9ed3b074ad /program/js/app.js | |
parent | f07d238b1b4d75b34639be873dcc1b1627404ae7 (diff) |
- Renamed events for groups handling, insertgroup -> group_insert,
updategroup -> group_update, removegroup -> group_delete
Diffstat (limited to 'program/js/app.js')
-rw-r--r-- | program/js/app.js | 6 |
1 files changed, 3 insertions, 3 deletions
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] }); }; |