Changes of Revision 3

roundcubemail-plugin-contextmenu.spec Changed
x
 
1
@@ -2,7 +2,7 @@
2
 %global plugindir %{datadir}/plugins
3
 
4
 Name:           roundcubemail-plugin-contextmenu
5
-Version:        2.1.1
6
+Version:        2.3
7
 Release:        1%{?dist}
8
 Summary:        Contextmenu plugin for Roundcube Webmail
9
 
10
@@ -114,6 +114,9 @@
11
 %{datadir}/public_html/assets/plugins/contextmenu/
12
 
13
 %changelog
14
+* Wed Aug  2 2017 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.3-1
15
+- Release of version 2.3
16
+
17
 * Tue Mar 31 2015 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 2.1.1-1
18
 - Release of version 2.1.1
19
 
20
debian.changelog Changed
11
 
1
@@ -1,3 +1,9 @@
2
+roundcubemail-plugin-contextmenu (2.3-0~kolab1) unstable; urgency=low
3
+
4
+  * Release of version 2.3
5
+
6
+ -- Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>  Wed,  2 Aug 2017 18:41:13 +0200
7
+
8
 roundcubemail-plugin-contextmenu (2.1.1-0~kolab1) unstable; urgency=low
9
 
10
   * Release of version 2.1.1
11
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/.gitignore Deleted
3
 
1
@@ -1,1 +0,0 @@
2
-config.inc.php
3
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/CHANGELOG -> roundcubemail-plugin-contextmenu-2.3.tar.gz/CHANGELOG Changed
23
 
1
@@ -1,6 +1,21 @@
2
 Roundcube Webmail ContextMenu
3
 =============================
4
 
5
+Version 2.3 (2017-06-14, rc-1.3)
6
+=================================================
7
+ * Remove special handling for group-create/rename (requires roundcube rev ec98aa5)
8
+ * "Flattened" the larry theme: fresher look by removing shadows and gradients
9
+ * Fix handling of folder names containing special chars
10
+
11
+Version 2.2 (2017-01-02, rc-1.3)
12
+=================================================
13
+ * Use new 'Mark all as read' function from core (requires 1.3)
14
+ * Enable compact+purge actions on all folders
15
+
16
+Version 2.1.2 (2015-04-18, rc-1.1)
17
+=================================================
18
+ * Fix #67 address book copy/move action not updated
19
+
20
 Version 2.1.1 (2015-03-18, rc-1.1)
21
 =================================================
22
  * Update submenu detection after 619891c
23
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/MANUAL.md -> roundcubemail-plugin-contextmenu-2.3.tar.gz/MANUAL.md Changed
10
 
1
@@ -42,7 +42,7 @@
2
 
3
 The Contextmenu must then be attached to the element(s) in the UI. For example:
4
 ```js
5
-$(el).bind("contextmenu", function(e) {
6
+$(el).on("contextmenu", function(e) {
7
   rcm_show_menu(e, obj, source_id, menu);
8
 });
9
 ```
10
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/composer.json -> roundcubemail-plugin-contextmenu-2.3.tar.gz/composer.json Changed
20
 
1
@@ -5,7 +5,7 @@
2
   "homepage": "http://github.com/JohnDoh/Roundcube-Plugin-Context-Menu/",
3
   "license": "GPL-3.0",
4
   "type": "roundcube-plugin",
5
-  "version": "2.1.1",
6
+  "version": "2.3",
7
   "authors": [
8
     {
9
       "name": "Philip Weir",
10
@@ -25,7 +25,7 @@
11
   },
12
   "extra": {
13
     "roundcube": {
14
-      "min-version": "1.1-beta"
15
+      "min-version": "1.3"
16
     }
17
   }
18
 }
19
\ No newline at end of file
20
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/contextmenu.js -> roundcubemail-plugin-contextmenu-2.3.tar.gz/contextmenu.js Changed
201
 
1
@@ -1,12 +1,27 @@
2
 /**
3
  * ContextMenu plugin script
4
+ *
5
+ * @licstart  The following is the entire license notice for the
6
+ * JavaScript code in this file.
7
+ *
8
+ * Copyright (C) 2009-2014 Philip Weir
9
+ *
10
+ * The JavaScript code in this page is free software: you can redistribute it
11
+ * and/or modify it under the terms of the GNU General Public License
12
+ * as published by the Free Software Foundation, either version 3 of
13
+ * the License, or (at your option) any later version.
14
+ *
15
+ * @licend  The above is the entire license notice
16
+ * for the JavaScript code in this file.
17
  */
18
 
19
+rcube_webmail.prototype.context_menu_skip_commands = new Array('mail-checkmail', 'mail-compose', 'addressbook-add', 'addressbook-import', 'addressbook-advanced-search', 'addressbook-search-create');
20
+rcube_webmail.prototype.context_menu_overload_commands = new Array('move', 'copy');
21
 rcube_webmail.prototype.context_menu_commands = new Array();
22
 rcube_webmail.prototype.context_menu_popup_menus = new Array();
23
 rcube_webmail.prototype.context_menu_popup_commands = {};
24
 
25
-rcube_webmail.prototype.context_menu_command_pattern = /rcmail\.command\(\'([^\']+)\',\s?\'([^\']*)\'/;
26
+rcube_webmail.prototype.context_menu_command_pattern = /rcmail\.command\(\'([^\']+)\',\s?\'((?:\\\'|[^\'])*)\'/;
27
 
28
 function rcm_listmenu_init(row, props, events) {
29
    if (!events)
30
@@ -23,7 +38,7 @@
31
    }, events));
32
 
33
    var list_object = props.list_object ? props.list_object : rcmail.message_list;
34
-   $("#" + row).bind("contextmenu", function(e) {
35
+   $("#" + row).on("contextmenu", function(e) {
36
        if (uid = list_object.get_row_uid(this)) {
37
            rcm_show_menu(e, this, uid, menu);
38
        }
39
@@ -35,39 +50,80 @@
40
        events = {};
41
 
42
    var menu = rcm_callbackmenu_init($.extend({'menu_name': 'folderlist', 'list_object': null}, props), $.extend({
43
+       'beforeactivate': function(p) {
44
+           if (rcmail.env.contextmenu_messagecount_request) {
45
+               rcmail.env.contextmenu_messagecount_request.abort();
46
+           }
47
+           rcmail.env.contextmenu_messagecount_request = null;
48
+       },
49
        'activate': function(p) {
50
-           if ($.inArray(p.command, Array('expunge', 'purge')) >= 0) {
51
-               if (rcmail.env.context_menu_source_id == rcmail.env.mailbox && rcm_check_button_state(p.btn, true)) {
52
+           if ($.inArray(p.command, Array('expunge', 'purge', 'mark-all-read')) >= 0) {
53
+               // disable the commands by default
54
+               $(p.el).addClass('disabled').removeClass('active');
55
+
56
+               // if menu is opened on current folder (or special mark-all-read command) then enable the commands same as in UI
57
+               if ((rcmail.env.context_menu_source_id == rcmail.env.mailbox || p.command == 'mark-all-read') && rcm_check_button_state(p.btn, true)) {
58
                    $(p.el).addClass('active').removeClass('disabled');
59
                }
60
-               else {
61
-                   $(p.el).addClass('disabled').removeClass('active');
62
+               // if menu is opened on difference folder then get message count for the folder
63
+               else if (rcmail.env.context_menu_source_id != rcmail.env.mailbox && !rcmail.env.contextmenu_messagecount_request) {
64
+                   // folder check called async to prevent slowdown on menu load
65
+                   rcmail.env.contextmenu_messagecount_request = $.ajax({
66
+                       type: 'POST', url: rcmail.url('plugin.contextmenu.messagecount'), data: {'_mbox': rcmail.env.context_menu_source_id}, dataType: 'json', async: true,
67
+                       success: function(data) {
68
+                           if (data.messagecount > 0 && $('#rcm_folderlist').is(':visible')) {
69
+                               // override the environment to check if commands should be abled
70
+                               var temp_exists = rcmail.env.exists;
71
+                               var temp_mailbox = rcmail.env.mailbox;
72
+                               rcmail.env.exists = data.messagecount;
73
+                               rcmail.env.mailbox = rcmail.env.context_menu_source_id;
74
+
75
+                               $('#rcm_folderlist').find('a.cmd_expunge').addClass('active').removeClass('disabled');
76
+                               if (rcmail.purge_mailbox_test()) {
77
+                                   $('#rcm_folderlist').find('a.cmd_purge').addClass('active').removeClass('disabled');
78
+                               }
79
+
80
+                               rcmail.env.exists = temp_exists;
81
+                               rcmail.env.mailbox = temp_mailbox;
82
+                           }
83
+                       }
84
+                   });
85
                }
86
            }
87
+       },
88
+       'beforecommand': function(p) {
89
+           if (rcmail.env.context_menu_source_id != rcmail.env.mailbox && $.inArray(p.command, Array('expunge', 'purge')) >= 0) {
90
+               var result = rcmail[p.command + '_mailbox'](rcmail.env.context_menu_source_id);
91
 
92
-           if (p.command == 'plugin.contextmenu.readfolder') {
93
-               if ($(p.source).children('a:first').has('span.unreadcount').length > 0) {
94
-                   $(p.el).addClass('active').removeClass('disabled');
95
-               }
96
-               else {
97
-                   $(p.el).addClass('disabled').removeClass('active');
98
+               // update the unread count and trash icon
99
+               if (p.command == 'purge' && result !== false) {
100
+                   rcmail.set_unread_count(rcmail.env.context_menu_source_id, 0, false);
101
+
102
+                   if (rcmail.env.context_menu_source_id == rcmail.env.trash_mailbox)
103
+                       rcmail.set_trash_count(0);
104
                }
105
+
106
+               return {'abort': true, 'result': true};
107
+           }
108
+           else if (rcmail.env.context_menu_source_id != rcmail.env.mailbox && p.command == 'mark-all-read') {
109
+               rcmail.mark_all_read(rcmail.env.context_menu_source_id);
110
+               return {'abort': true, 'result': true};
111
            }
112
        }
113
    }, events));
114
 
115
-   $(el).bind("click",function(e) {
116
+   $(el).click(function(e) {
117
        // hide menu when changing folder
118
        menu.hide(e);
119
    })
120
-   .bind("contextmenu", function(e) {
121
+   .on("contextmenu", function(e) {
122
        var source = $(this).children('a');
123
 
124
        // remove focus (and keyboard nav highlighting) from A
125
        source.blur();
126
 
127
-       if (source.attr('onclick') && source.attr('onclick').match(rcmail.context_menu_command_pattern)) {
128
-           rcm_show_menu(e, this, RegExp.$2, menu);
129
+       if (source.attr('rel') && source.attr('onclick') && source.attr('onclick').match(rcmail.context_menu_command_pattern)) {
130
+           rcm_show_menu(e, this, source.attr('rel'), menu);
131
        }
132
    });
133
 }
134
@@ -112,14 +168,6 @@
135
                }
136
            }
137
        },
138
-       'beforecommand': function(p) {
139
-           if (!$(p.el).hasClass('active'))
140
-               return;
141
-
142
-           var ids = rcmail.env.context_menu_source_id.split(':', 2);
143
-           cur_source = ids[0];
144
-           rcmail.env.source = cur_source;
145
-       },
146
        'command': function(p) {
147
            if (!$(p.el).hasClass('active'))
148
                return;
149
@@ -140,45 +188,23 @@
150
            rcmail.enable_command(p.command, true);
151
 
152
            switch (p.command) {
153
-               case 'group-rename':
154
-                   result = rcmail.command(p.command, p.args, p.el);
155
-
156
-                   // callback requires target is selected
157
-                   rcmail.enable_command('listgroup', true);
158
-                   rcmail.env.source = prev_source
159
-                   rcmail.env.group = prev_group;
160
-                   prev_source = cur_source;
161
-                   prev_group = cur_id;
162
-                   rcmail.command('listgroup', {'source': prev_source, 'id': prev_group}, p.el, p.evt);
163
-                   rcmail.enable_command('listgroup', false);
164
-                   break;
165
-               case 'group-delete':
166
-                   result = rcmail.command(p.command, p.args, p.el);
167
-                   break;
168
                case 'search-delete':
169
                    var result = false;
170
 
171
                    if ($(p.ref.selected_object).children('a').attr('rel')) {
172
                        var prev_search_id = rcmail.env.search_id;
173
                        var prev_search_request = rcmail.env.search_request;
174
-                       var prev_command = rcmail.commands[p.command];
175
                        rcmail.env.search_request = true;
176
                        rcmail.env.search_id = $(p.ref.selected_object).children('a').attr('rel').replace('S', '');
177
 
178
-                       rcmail.enable_command(p.command, true);
179
                        result = rcmail.command(p.command, p.args, p.el, p.evt);
180
-                       rcmail.enable_command(p.command, prev_command);
181
 
182
                        rcmail.env.search_request = prev_search_request;
183
                        rcmail.env.search_id = prev_search_id;
184
                    }
185
                    break;
186
                default:
187
-                   // enable the required command
188
-                   var prev_command = rcmail.commands[p.command];
189
-                   rcmail.enable_command(p.command, true);
190
-                   var result = rcmail.command(p.command, p.args, p.el, p.evt);
191
-                   rcmail.enable_command(p.command, prev_command);
192
+                   result = rcmail.command(p.command, p.args, p.el, p.evt);
193
                    break;
194
            }
195
 
196
@@ -187,21 +213,14 @@
197
            rcmail.env.group = prev_group;
198
 
199
            return result;
200
-       },
201
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/contextmenu.php -> roundcubemail-plugin-contextmenu-2.3.tar.gz/contextmenu.php Changed
107
 
1
@@ -5,8 +5,26 @@
2
  *
3
  * Plugin to add a context menu to various parts of the interface
4
  *
5
- * @version @package_version@
6
  * @author Philip Weir
7
+ *
8
+ * Copyright (C) 2009-2014 Philip Weir
9
+ *
10
+ * This program is a Roundcube (http://www.roundcube.net) plugin.
11
+ * For more information see README.md.
12
+ * See MANUAL.md for information about extending this plugin.
13
+ *
14
+ * This program is free software: you can redistribute it and/or modify
15
+ * it under the terms of the GNU General Public License as published by
16
+ * the Free Software Foundation, either version 3 of the License, or
17
+ * (at your option) any later version.
18
+ *
19
+ * This program is distributed in the hope that it will be useful,
20
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ * GNU General Public License for more details.
23
+ *
24
+ * You should have received a copy of the GNU General Public License
25
+ * along with Roundcube. If not, see http://www.gnu.org/licenses/.
26
  */
27
 class contextmenu extends rcube_plugin
28
 {
29
@@ -15,28 +33,26 @@
30
    function init()
31
    {
32
        $rcmail = rcube::get_instance();
33
+
34
+       if ($rcmail->output->type == 'html') {
35
+           $this->include_script('contextmenu.js');
36
+           $this->include_stylesheet($this->local_skin_path() . '/contextmenu.css');
37
+           $this->include_script($this->local_skin_path() . '/functions.js');
38
+           $this->api->output->set_env('contextmenu', true);
39
+       }
40
+
41
        if ($rcmail->task == 'mail') {
42
-           $this->register_action('plugin.contextmenu.readfolder', array($this, 'readfolder'));
43
+           $this->register_action('plugin.contextmenu.messagecount', array($this, 'messagecount'));
44
 
45
            // on the mailbox screen only add some additional options for the folder menu
46
            if ($rcmail->action == '') {
47
                $this->addition_folder_options();
48
            }
49
        }
50
-
51
-       if ($rcmail->task == 'addressbook' && $rcmail->action == '') {
52
+       elseif ($rcmail->task == 'addressbook' && $rcmail->action == '') {
53
            // give other plugins a change to add address books before checking if they exist for the menu
54
            $this->add_hook('render_page', array($this, 'addition_addressbook_options'));
55
        }
56
-
57
-       if ($rcmail->output->type == 'html') {
58
-           $rcmail->output->add_script("rcmail.context_menu_skip_commands = new Array('mail-checkmail', 'mail-compose', 'addressbook-add', 'addressbook-import', 'addressbook-advanced-search', 'addressbook-search-create');");
59
-           $rcmail->output->add_script("rcmail.context_menu_overload_commands = new Array('move', 'copy');");
60
-           $this->include_script('contextmenu.js');
61
-           $this->include_stylesheet($this->local_skin_path() . '/contextmenu.css');
62
-           $this->include_script($this->local_skin_path() . '/functions.js');
63
-           $this->api->output->set_env('contextmenu', true);
64
-       }
65
    }
66
 
67
    public function addition_folder_options()
68
@@ -44,7 +60,6 @@
69
        $this->add_texts('localization/');
70
 
71
        $li = '';
72
-       $li .= html::tag('li', array('role' => 'menuitem'), $this->api->output->button(array('command' => 'plugin.contextmenu.readfolder', 'type' => 'link', 'class' => 'readfolder', 'label' => 'contextmenu.markreadfolder', 'tabindex' => '-1', 'aria-disabled' => 'true')));
73
        $li .= html::tag('li', array('role' => 'menuitem'), $this->api->output->button(array('command' => 'plugin.contextmenu.collapseall', 'type' => 'link', 'class' => 'collapseall rcm_active', 'label' => 'contextmenu.collapseall', 'tabindex' => '-1', 'aria-disabled' => 'true')));
74
        $li .= html::tag('li', array('role' => 'menuitem'), $this->api->output->button(array('command' => 'plugin.contextmenu.expandall', 'type' => 'link', 'class' => 'expandall rcm_active', 'label' => 'contextmenu.expandall', 'tabindex' => '-1', 'aria-disabled' => 'true')));
75
        $li .= html::tag('li', array('role' => 'menuitem'), $this->api->output->button(array('command' => 'plugin.contextmenu.openfolder', 'type' => 'link', 'class' => 'openfolder rcm_active', 'label' => 'openinextwin', 'tabindex' => '-1', 'aria-disabled' => 'true')));
76
@@ -70,25 +85,15 @@
77
        $this->api->output->add_footer(html::div(array('style' => 'display: none;', 'aria-hidden' => 'true'), $out));
78
    }
79
 
80
-   public function readfolder()
81
+   public function messagecount()
82
    {
83
        $storage = rcube::get_instance()->storage;
84
-       $cbox = rcube_utils::get_input_value('_cur', rcube_utils::INPUT_POST);
85
        $mbox = rcube_utils::get_input_value('_mbox', rcube_utils::INPUT_POST);
86
-       $oact = rcube_utils::get_input_value('_oact', rcube_utils::INPUT_POST);
87
-
88
-       $uids = $storage->search_once($mbox, 'ALL UNSEEN', true);
89
-
90
-       if ($uids->is_empty())
91
-           return false;
92
-
93
-       $storage->set_flag($uids->get(), 'SEEN', $mbox);
94
-
95
-       if ($cbox == $mbox)
96
-           $this->api->output->command('toggle_read_status', 'read', $uids->get());
97
 
98
-       rcmail_send_unread_count($mbox, true);
99
-       $this->api->output->send();
100
+       // send output
101
+       header("Content-Type: application/json; charset=".RCUBE_CHARSET);
102
+       echo json_encode(array('messagecount' => $storage->count($mbox, 'EXISTS')));
103
+       exit;
104
    }
105
 }
106
 
107
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/ca_ES.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/ca_ES.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: Daniel López */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Marca tot com a llegit';
6
 $labels['collapseall'] = 'Compacta totes les carpetes';
7
 $labels['expandall'] = 'Expandeix totes les carpetes';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/cs_CZ.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/cs_CZ.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: Martin Frajdl */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Oznacit vše jako přečtené';
6
 $labels['collapseall'] = 'Sbalit všechny složky';
7
 $labels['expandall'] = 'Rozbalit všechny složky';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/da_DK.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/da_DK.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: Johannes Hessellund */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Markér alle som læst';
6
 $labels['collapseall'] = 'Fold alle mapper sammen';
7
 $labels['expandall'] = 'Udfold alle mapper';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/de_CH.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/de_CH.inc Changed
14
 
1
@@ -2,10 +2,8 @@
2
 /* Author: Mike Constabel */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Alle als gelesen markieren';
6
 $labels['collapseall'] = 'Alle Unterordner einklappen';
7
 $labels['expandall'] = 'Alle Unterordner ausklappen';
8
+$labels['assigngroup'] = 'Gewählte Kontakte einer Gruppe zuordnen';
9
 
10
 $messages = array();
11
-
12
-?>
13
\ No newline at end of file
14
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/de_DE.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/de_DE.inc Changed
14
 
1
@@ -2,10 +2,8 @@
2
 /* Author: Mike Constabel */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Alle als gelesen markieren';
6
 $labels['collapseall'] = 'Alle Unterordner einklappen';
7
 $labels['expandall'] = 'Alle Unterordner ausklappen';
8
+$labels['assigngroup'] = 'Gewählte Kontakte einer Gruppe zuordnen';
9
 
10
 $messages = array();
11
-
12
-?>
13
\ No newline at end of file
14
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/en_GB.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/en_GB.inc Changed
14
 
1
@@ -2,11 +2,8 @@
2
 /* Author: Philip Weir */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Mark all as read';
6
 $labels['collapseall'] = 'Collapse all folders';
7
 $labels['expandall'] = 'Expand all folders';
8
 $labels['assigngroup'] = 'Assign selected contacts to group...';
9
 
10
 $messages = array();
11
-
12
-?>
13
\ No newline at end of file
14
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/en_US.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/en_US.inc Changed
14
 
1
@@ -2,11 +2,8 @@
2
 /* Author: Philip Weir */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Mark all as read';
6
 $labels['collapseall'] = 'Collapse all folders';
7
 $labels['expandall'] = 'Expand all folders';
8
 $labels['assigngroup'] = 'Assign selected contacts to group...';
9
 
10
 $messages = array();
11
-
12
-?>
13
\ No newline at end of file
14
roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/es_AR.inc Added
14
 
1
@@ -0,0 +1,12 @@
2
+<?php
3
+/* Author: Sergio Loyola */
4
+
5
+$labels = array();
6
+$labels['markreadfolder'] = 'Marcar todo como leído';
7
+$labels['collapseall'] = 'Compactar todas las carpetas';
8
+$labels['expandall'] = 'Expandir todas las carpetas';
9
+$labels['assigngroup'] = 'Asignar contactos seleccionados al grupo ...';
10
+
11
+$messages = array();
12
+
13
+?>
14
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/es_ES.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/es_ES.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: Daniel López */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Marcar todo como leído';
6
 $labels['collapseall'] = 'Compactar todas las carpetas';
7
 $labels['expandall'] = 'Expandir todas las carpetas';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/fr_FR.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/fr_FR.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Marquer tout comme lu';
6
 $labels['collapseall'] = 'Reduire les dossiers';
7
 $labels['expandall'] = 'Developper les dossiers';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/gl_ES.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/gl_ES.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: David Garabana Barro */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Marcar todas coma lidas';
6
 $labels['collapseall'] = 'Pechar tódolos cartafoles';
7
 $labels['expandall'] = 'Abrir tódolos cartafoles';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/hu_HU.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/hu_HU.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: Németh János */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Összes megjelölése olvasottként';
6
 $labels['collapseall'] = 'Összes összecsukása';
7
 $labels['expandall'] = 'Összes kibontása';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/it_IT.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/it_IT.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: Massimiliano Adamo */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Marca tutto come letto';
6
 $labels['collapseall'] = 'Compatta tutte le cartelle';
7
 $labels['expandall'] = 'Espandi tutte le cartelle';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/ja_JP.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/ja_JP.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: MASUDA Kazuya */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = '全て既読に設定';
6
 $labels['collapseall'] = '全てのフォルダーを閉じる';
7
 $labels['expandall'] = '全てのフォルダーを開く';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/nl_NL.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/nl_NL.inc Changed
14
 
1
@@ -2,10 +2,8 @@
2
 /* Author: Wouter Kevenaar */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Alles markeren als gelezen';
6
 $labels['collapseall'] = 'Alle mappen inklappen';
7
 $labels['expandall'] = 'Alle mappen uitklappen';
8
+$labels['assigngroup'] = 'Geselecteerde contacten toewijzen aan groep...';
9
 
10
 $messages = array();
11
-
12
-?>
13
\ No newline at end of file
14
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/pl_PL.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/pl_PL.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: Michał Jałocha */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Oznacz wszystkie jako przeczytane';
6
 $labels['collapseall'] = 'Zwiń wszystkie foldery';
7
 $labels['expandall'] = 'Rozwiń wszystkie foldery';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/pt_BR.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/pt_BR.inc Changed
16
 
1
@@ -1,11 +1,9 @@
2
 <?php
3
-/* Author: Alexandre Gorges */
4
+/* Author: Claudio Ferreira Filho */
5
 
6
 $labels = array();
7
-$labels['markreadfolder'] = 'Marcar todas como lidas';
8
 $labels['collapseall'] = 'Recolher todas as pastas';
9
 $labels['expandall'] = 'Expandir todas as pastas';
10
+$labels['assigngroup'] = 'Atribuir contatos selecionados ao grupo...';
11
 
12
 $messages = array();
13
-
14
-?>
15
\ No newline at end of file
16
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/pt_PT.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/pt_PT.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: Miguel Clara */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Marcar todas como lidas';
6
 $labels['collapseall'] = 'Fechar todas as pastas';
7
 $labels['expandall'] = 'Expandir todas as pastas';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/ro_RO.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/ro_RO.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: Ovidiu Bica */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Marchează mesajele ca citite';
6
 $labels['collapseall'] = 'Ascunde toate folderele';
7
 $labels['expandall'] = 'Afişează toate folderele';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/ru_RU.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/ru_RU.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: Sergey Basov */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Отметить все как прочитанные';
6
 $labels['collapseall'] = 'Свернуть все папки';
7
 $labels['expandall'] = 'Развернуть все папки';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/sv_SE.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/sv_SE.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: Jonas Nasholm */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Märk allt som läst';
6
 $labels['collapseall'] = 'Dölj alla kataloger';
7
 $labels['expandall'] = 'Visa alla kataloger';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/tr_TR.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/tr_TR.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: Mustafa Icer */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Tüm mesajları okunumuş olarak işaretle';
6
 $labels['collapseall'] = 'Tüm alt klasörleri kapat';
7
 $labels['expandall'] = 'Tüm alt klasörleri aç';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/uk_UA.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/uk_UA.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: Sergey Basov */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = 'Відмітити все як прочитане';
6
 $labels['collapseall'] = 'Згорнути усі папки';
7
 $labels['expandall'] = 'Розгорнути усі папки';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/localization/zh_TW.inc -> roundcubemail-plugin-contextmenu-2.3.tar.gz/localization/zh_TW.inc Changed
13
 
1
@@ -2,10 +2,7 @@
2
 /* Author: thomasysliu */
3
 
4
 $labels = array();
5
-$labels['markreadfolder'] = '標示為已讀取';
6
 $labels['collapseall'] = '全部收起';
7
 $labels['expandall'] = '全部展開';
8
 
9
 $messages = array();
10
-
11
-?>
12
\ No newline at end of file
13
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/skins/classic/contextmenu.css -> roundcubemail-plugin-contextmenu-2.3.tar.gz/skins/classic/contextmenu.css Changed
73
 
1
@@ -132,7 +132,7 @@
2
   background: url(images/messageactions.png) no-repeat 5px 1px;
3
 }
4
 
5
-div.contextmenu ul.iconized li a.readfolder span.icon
6
+div.contextmenu ul.iconized li a.cmd_mark-all-read span.icon
7
 {
8
   background-position: 7px -85px;
9
 }
10
@@ -191,6 +191,11 @@
11
   background-position: 8px -236px;
12
 }
13
 
14
+div.contextmenu ul.iconized li a.vcard span.icon
15
+{
16
+  background-position: 7px -546px;
17
+}
18
+
19
 div.contextmenu ul.iconized li a.cmd_group-create span.icon,
20
 div.contextmenu ul.iconized li a.assigngroup span.icon
21
 {
22
@@ -217,42 +222,42 @@
23
   background-position: 7px -186px;
24
 }
25
 
26
-#rcm_messagemenu ul.iconized li a span.icon
27
+#rcm_messagemenumenu ul.iconized li a span.icon
28
 {
29
   background: url(images/messageactions.png) no-repeat 5px 20px;
30
 }
31
 
32
-#rcm_messagemenu ul.iconized li a.printlink span.icon
33
+#rcm_messagemenumenu ul.iconized li a.printlink span.icon
34
 {
35
   background-position: 5px 1px;
36
 }
37
 
38
-#rcm_messagemenu ul.iconized li a.downloadlink span.icon
39
+#rcm_messagemenumenu ul.iconized li a.downloadlink span.icon
40
 {
41
   background-position: 5px -17px;
42
 }
43
 
44
-#rcm_messagemenu ul.iconized li a.editlink span.icon
45
+#rcm_messagemenumenu ul.iconized li a.editlink span.icon
46
 {
47
   background-position: 5px -70px;
48
 }
49
 
50
-#rcm_messagemenu ul.iconized li a.movelink span.icon
51
+#rcm_messagemenumenu ul.iconized li a.movelink span.icon
52
 {
53
   background-position: 5px -161px;
54
 }
55
 
56
-#rcm_messagemenu ul.iconized li a.copylink span.icon
57
+#rcm_messagemenumenu ul.iconized li a.copylink span.icon
58
 {
59
   background-position: 5px -143px;
60
 }
61
 
62
-#rcm_messagemenu ul.iconized li a.sourcelink span.icon
63
+#rcm_messagemenumenu ul.iconized li a.sourcelink span.icon
64
 {
65
   background-position: 5px -35px;
66
 }
67
 
68
-#rcm_messagemenu ul.iconized li a.openlink span.icon
69
+#rcm_messagemenumenu ul.iconized li a.openlink span.icon
70
 {
71
   background-position: 5px -52px;
72
 }
73
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/skins/classic/functions.js -> roundcubemail-plugin-contextmenu-2.3.tar.gz/skins/classic/functions.js Changed
41
 
1
@@ -1,11 +1,30 @@
2
 /**
3
  * ContextMenu plugin script
4
+ *
5
+ * @licstart  The following is the entire license notice for the
6
+ * JavaScript code in this file.
7
+ *
8
+ * Copyright (C) 2014 Philip Weir
9
+ *
10
+ * The JavaScript code in this page is free software: you can redistribute it
11
+ * and/or modify it under the terms of the GNU General Public License
12
+ * as published by the Free Software Foundation, either version 3 of
13
+ * the License, or (at your option) any later version.
14
+ *
15
+ * @licend  The above is the entire license notice
16
+ * for the JavaScript code in this file.
17
  */
18
 
19
 rcube_webmail.prototype.context_menu_popup_pattern = /rcmail_ui\.show_popup\(\'([^\']+)\'/;
20
 rcube_webmail.prototype.context_menu_button_active_class = new Array('active', 'button');
21
 rcube_webmail.prototype.context_menu_button_disabled_class = new Array('disabled', 'buttonPas');
22
 
23
+function add_menu_text(p) {
24
+   if ($(p.item).children('a').hasClass('vcard')) {
25
+       $(p.item).children('a').children('span').text($('#abookactions a.vcard').attr('title'));
26
+   }
27
+}
28
+
29
 function reorder_contact_menu(p) {
30
    // put export link last
31
    var ul = p.ref.container.find('ul:first');
32
@@ -24,7 +43,7 @@
33
            rcmail.add_onload("rcm_foldermenu_init('#mailboxlist li', {'menu_source': ['#rcmFolderMenu', '#mailboxoptionsmenu ul']})");
34
        }
35
        else if (rcmail.env.task == 'mail' && rcmail.env.action == 'compose') {
36
-           rcmail.addEventListener('insertrow', function(props) { rcm_listmenu_init(props.row.id, {'menu_name': 'composeto', 'menu_source': '#abookactions', 'list_object': rcmail.contact_list}); } );
37
+           rcmail.addEventListener('insertrow', function(props) { rcm_listmenu_init(props.row.id, {'menu_name': 'composeto', 'menu_source': '#abookactions', 'list_object': rcmail.contact_list}, {'insertitem': function(p) { add_menu_text(p); }}); } );
38
        }
39
        else if (rcmail.env.task == 'addressbook' && rcmail.env.action == '') {
40
            rcmail.addEventListener('contextmenu_init', function(menu) {
41
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/skins/classic/images/contexticons.png -> roundcubemail-plugin-contextmenu-2.3.tar.gz/skins/classic/images/contexticons.png Changed
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/skins/larry/contextmenu.css -> roundcubemail-plugin-contextmenu-2.3.tar.gz/skins/larry/contextmenu.css Changed
22
 
1
@@ -114,7 +114,7 @@
2
   background-position: 0 -347px;
3
 }
4
 
5
-div.contextmenu ul.iconized li a.readfolder span.icon
6
+div.contextmenu ul.iconized li a.cmd_mark-all-read span.icon
7
 {
8
   background-position: 0 -26px;
9
 }
10
@@ -151,6 +151,11 @@
11
   background-position: 0 -281px;
12
 }
13
 
14
+div.contextmenu ul.iconized li a.vcard span.icon
15
+{
16
+  background-position: 0 -738px;
17
+}
18
+
19
 div.contextmenu ul.iconized li a.movecontact span.icon
20
 {
21
   background-position: 0 -632px;
22
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/skins/larry/functions.js -> roundcubemail-plugin-contextmenu-2.3.tar.gz/skins/larry/functions.js Changed
30
 
1
@@ -1,5 +1,18 @@
2
 /**
3
  * ContextMenu plugin script
4
+ *
5
+ * @licstart  The following is the entire license notice for the
6
+ * JavaScript code in this file.
7
+ *
8
+ * Copyright (C) 2014 Philip Weir
9
+ *
10
+ * The JavaScript code in this page is free software: you can redistribute it
11
+ * and/or modify it under the terms of the GNU General Public License
12
+ * as published by the Free Software Foundation, either version 3 of
13
+ * the License, or (at your option) any later version.
14
+ *
15
+ * @licend  The above is the entire license notice
16
+ * for the JavaScript code in this file.
17
  */
18
 
19
 rcube_webmail.prototype.context_menu_popup_pattern = /UI\.toggle_popup\(\'([^\']+)\'/;
20
@@ -17,6 +30,9 @@
21
        else if ($(p.item).children('a').hasClass('addbcc')) {
22
            $(p.item).children('a').children('span').text($('#compose-contacts div.boxfooter a.addbcc').attr('title'));
23
        }
24
+       else if ($(p.item).children('a').hasClass('vcard')) {
25
+           $(p.item).children('a').children('span').text($('#compose-contacts div.boxfooter a.vcard').attr('title'));
26
+       }
27
    }
28
    else if (menu == 'contactlist') {
29
        if ($(p.item).children('a').hasClass('delete')) {
30
roundcubemail-plugin-contextmenu-2.1.1.tar.gz/skins/larry/images/contexticons.png -> roundcubemail-plugin-contextmenu-2.3.tar.gz/skins/larry/images/contexticons.png Changed
roundcubemail-plugin-contextmenu.dsc Changed
21
 
1
@@ -2,15 +2,15 @@
2
 Source: roundcubemail-plugin-contextmenu
3
 Binary: roundcubemail-plugin-contextmenu
4
 Architecture: all
5
-Version: 2.1.1-0~kolab1
6
+Version: 2.3-0~kolab1
7
 Maintainer: Christoph Wickert <wickert@kolabsys.com>
8
 Uploaders: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>, Paul Klos <kolab@klos2day.nl>
9
 Standards-Version: 3.9.3
10
 Vcs-Browser: http://git.kolabsys.com/apt/roundcube-plugins-kolab.git
11
 Vcs-Git: git://git.kolabsys.com/git/apt/roundcube-plugins-kolab
12
 Build-Depends: debhelper (>= 8)
13
-Package-List: 
14
+Package-List:
15
  roundcubemail-plugin-contextmenu deb web extra
16
-Files: 
17
- 00000000000000000000000000000000 0 roundcubemail-plugin-contextmenu-2.1.1.tar.gz
18
+Files:
19
+ 00000000000000000000000000000000 0 roundcubemail-plugin-contextmenu-2.3.tar.gz
20
  00000000000000000000000000000000 0 debian.tar.gz
21