diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-04-25 09:24:37 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-04-25 09:24:37 +0200 |
commit | 5a7b7ce039c5bffc370ec79aea5eba6043c908ec (patch) | |
tree | b8f39ff262d34fb28310357b4e0dc81e5a0581cb /plugins/zipdownload | |
parent | eed897ca030bff7a684d15be3bf46fc0a9565a82 (diff) |
Prevent from js error when messages list does not exist
Diffstat (limited to 'plugins/zipdownload')
-rw-r--r-- | plugins/zipdownload/zipdownload.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); |