summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-01-22 09:14:50 +0100
committerAleksander Machniak <alec@alec.pl>2014-01-22 09:14:50 +0100
commita62c7392aacf9a87d8c7dbf11b8b047529a162b3 (patch)
tree0b02764185e4d25cd1e603a1da0d2a867e44d199 /program/js
parent4f9bd084692c0ff558668fee8ee0025e3d33610f (diff)
Add 'markfolder' event (#1485775)
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index e89e85e52..f83caeb36 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -6362,12 +6362,14 @@ function rcube_webmail()
this.mark_folder = function(name, class_name, prefix, encode)
{
$(this.get_folder_li(name, prefix, encode)).addClass(class_name);
+ this.triggerEvent('markfolder', {folder: name, mark: class_name, status: true});
};
// adds a class to selected folder
this.unmark_folder = function(name, class_name, prefix, encode)
{
$(this.get_folder_li(name, prefix, encode)).removeClass(class_name);
+ this.triggerEvent('markfolder', {folder: name, mark: class_name, status: false});
};
// helper method to find a folder list item