From a62c7392aacf9a87d8c7dbf11b8b047529a162b3 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 22 Jan 2014 09:14:50 +0100 Subject: [PATCH] Add 'markfolder' event (#1485775) --- program/js/app.js | 2 ++ 1 file changed, 2 insertions(+) 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