- Added possibility to invert messages selection

release-0.6
alecpl 15 years ago
parent bd6d22e3e0
commit 52818559ce

@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail
===========================
- Added possibility to invert messages selection
- After move/delete from 'show' action display next message instead of messages list (#1485887)
- Fixed problem with double quote at the end of folder name (#1485884)
- Speedup UI by using CSS sprites and etags/expires/deflate in Apache config (#1484858,#1485800)

@ -826,7 +826,10 @@ function rcube_webmail()
break;
case 'select-all':
this.message_list.select_all(props);
if (props == 'invert')
this.message_list.invert_selection();
else
this.message_list.select_all(props);
break;
case 'select-none':

@ -529,6 +529,30 @@ select_all: function(filter)
},
/**
* Invert selection
*/
invert_selection: function()
{
if (!this.rows || !this.rows.length)
return false;
// remember old selection
var select_before = this.selection.join(',');
for (var n in this.rows)
this.highlight_row(n, true);
// trigger event if selection changed
if (this.selection.join(',') != select_before)
this.triggerEvent('select');
this.focus();
return true;
},
/**
* Unselect selected row(s)
*/

@ -116,13 +116,13 @@ $labels['markread'] = 'As read';
$labels['markunread'] = 'As unread';
$labels['markflagged'] = 'As flagged';
$labels['markunflagged'] = 'As unflagged';
$labels['messagemenu'] = 'Message menu';
$labels['select'] = 'Select';
$labels['all'] = 'All';
$labels['none'] = 'None';
$labels['unread'] = 'Unread';
$labels['flagged'] = 'Flagged';
$labels['unanswered'] = 'Unanswered';
$labels['invert'] = 'Invert';
$labels['filter'] = 'Filter';
$labels['compact'] = 'Compact';
$labels['empty'] = 'Empty';

@ -143,7 +143,6 @@ $labels['markunread'] = 'As unread';
$labels['markflagged'] = 'As flagged';
$labels['markunflagged'] = 'As unflagged';
$labels['messageactions'] = 'More actions...';
$labels['messagemenu'] = 'Message menu';
$labels['select'] = 'Select';
$labels['all'] = 'All';
@ -151,6 +150,7 @@ $labels['none'] = 'None';
$labels['unread'] = 'Unread';
$labels['flagged'] = 'Flagged';
$labels['unanswered'] = 'Unanswered';
$labels['invert'] = 'Invert';
$labels['filter'] = 'Filter';
$labels['compact'] = 'Compact';

@ -116,7 +116,6 @@ $labels['markread'] = 'Loetuks';
$labels['markunread'] = 'Mitte loetuks';
$labels['markflagged'] = 'Lisa lipik';
$labels['markunflagged'] = 'Eemalda lipik';
$labels['messagemenu'] = 'Kirjade menüü';
$labels['select'] = 'Vali';
$labels['all'] = 'kõik';
$labels['none'] = 'mitte midagi';

@ -118,7 +118,6 @@ $labels['markread'] = 'luetuiksi';
$labels['markunread'] = 'ei-luetuiksi';
$labels['markflagged'] = 'korostetuiksi';
$labels['markunflagged'] = 'ei-korostetuiksi';
$labels['messagemenu'] = 'Viestilista';
$labels['select'] = 'Valitse';
$labels['all'] = 'Kaikki';
$labels['none'] = 'Ei mitään';

@ -119,7 +119,6 @@ $labels['markunread'] = 'Ongelezen';
$labels['markflagged'] = 'Selecteren';
$labels['markunflagged'] = 'Niet selecteren';
$labels['messageactions'] = 'Meer acties...';
$labels['messagemenu'] = 'Berichtenmenu';
$labels['select'] = 'Selecteer';
$labels['all'] = 'Allemaal';
$labels['none'] = 'Geen';

@ -127,13 +127,14 @@ $labels['markread'] = 'Jako przeczytane';
$labels['markunread'] = 'Jako nieprzeczytane';
$labels['markflagged'] = 'Jako oflagowane';
$labels['markunflagged'] = 'Jako nieoflagowane';
$labels['messagemenu'] = 'Menu wiadomości';
$labels['messageactions'] = 'Więcej akcji...';
$labels['select'] = 'Zaznacz';
$labels['all'] = 'Wszystkie';
$labels['none'] = 'Anuluj';
$labels['unread'] = 'Nieprzeczytane';
$labels['flagged'] = 'Oznaczone';
$labels['unanswered'] = 'Bez odpowiedzi';
$labels['invert'] = 'Odwróć';
$labels['filter'] = 'Filtr';
$labels['compact'] = 'Porządkuj';
$labels['empty'] = 'Opróżnij';

@ -88,7 +88,9 @@
<roundcube:label name="select" />:&nbsp;
<roundcube:button command="select-all" label="all" classAct="active" />&nbsp;
<roundcube:button command="select-all" prop="unread" label="unread" classAct="active" />&nbsp;
<roundcube:button command="select-all" prop="invert" label="invert" classAct="active" />&nbsp;
<roundcube:button command="select-none" label="none" classAct="active" /> &nbsp;
<roundcube:container name="listcontrols" id="listcontrols" />
</span>
<roundcube:if condition="env:quota" />
<span id="quotabox">

Loading…
Cancel
Save