From 5a7b7ce039c5bffc370ec79aea5eba6043c908ec Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 25 Apr 2014 09:24:37 +0200 Subject: Prevent from js error when messages list does not exist --- plugins/zipdownload/zipdownload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/zipdownload/zipdownload.js b/plugins/zipdownload/zipdownload.js index 7629e9b20..39fb2d820 100644 --- a/plugins/zipdownload/zipdownload.js +++ b/plugins/zipdownload/zipdownload.js @@ -9,7 +9,7 @@ window.rcmail && rcmail.addEventListener('init', function(evt) { rcmail.register_command('download-maildir', function() { rcmail_zipdownload('maildir'); }); // commands status - rcmail.message_list.addEventListener('select', function(list) { + rcmail.message_list && rcmail.message_list.addEventListener('select', function(list) { var selected = list.get_selection().length; rcmail.enable_command('download', selected > 0); -- cgit v1.2.3