Aleksander Machniak
2014-04-25 5a7b7ce039c5bffc370ec79aea5eba6043c908ec
Prevent from js error when messages list does not exist
1 files modified
2 ■■■ changed files
plugins/zipdownload/zipdownload.js 2 ●●● patch | view | raw | blame | history
plugins/zipdownload/zipdownload.js
@@ -9,7 +9,7 @@
    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);