summaryrefslogtreecommitdiff
path: root/plugins/zipdownload/zipdownload.js
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-04-25 09:24:37 +0200
committerAleksander Machniak <alec@alec.pl>2014-04-25 09:24:37 +0200
commit5a7b7ce039c5bffc370ec79aea5eba6043c908ec (patch)
treeb8f39ff262d34fb28310357b4e0dc81e5a0581cb /plugins/zipdownload/zipdownload.js
parenteed897ca030bff7a684d15be3bf46fc0a9565a82 (diff)
Prevent from js error when messages list does not exist
Diffstat (limited to 'plugins/zipdownload/zipdownload.js')
-rw-r--r--plugins/zipdownload/zipdownload.js2
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);