Skip to content

Commit

Permalink
fix case cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jan 30, 2024
1 parent 57d536a commit 9ae5942
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 13 deletions.
21 changes: 14 additions & 7 deletions plugins/managesieve/managesieve.js
Original file line number Diff line number Diff line change
Expand Up @@ -1023,10 +1023,12 @@ function sieve_formattime(hour, minutes) {
for (i = 0; i < format.length; i++) {
c = format.charAt(i);
switch (c) {
case 'a': time += hour >= 12 ? 'pm' : 'am';
case 'a':
time += hour >= 12 ? 'pm' : 'am';

break;
case 'A': time += hour >= 12 ? 'PM' : 'AM';
case 'A':
time += hour >= 12 ? 'PM' : 'AM';

break;
case 'g':
Expand All @@ -1035,17 +1037,22 @@ function sieve_formattime(hour, minutes) {
time += (c == 'h' && hour < 10 ? '0' : '') + hour;

break;
case 'G': time += hour;
case 'G':
time += hour;

break;
case 'H': time += (hour < 10 ? '0' : '') + hour;
case 'H':
time += (hour < 10 ? '0' : '') + hour;

break;
case 'i': time += (minutes < 10 ? '0' : '') + minutes;
case 'i':
time += (minutes < 10 ? '0' : '') + minutes;

break;
case 's': time += '00';
default: time += c;
case 's':
time += '00';
default:
time += c;
}
}

Expand Down
6 changes: 4 additions & 2 deletions program/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3150,10 +3150,12 @@ function rcube_webmail() {
}

switch (this.env.autoexpand_threads) {
case 2: this.expand_unread();
case 2:
this.expand_unread();

break;
case 1: this.message_list.expand_all();
case 1:
this.message_list.expand_all();

break;
}
Expand Down
12 changes: 8 additions & 4 deletions skins/elastic/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1712,16 +1712,20 @@ function rcube_elastic_ui() {
}

switch (mode) {
case 'phone': screen_resize_phone();
case 'phone':
screen_resize_phone();

break;
case 'small': screen_resize_small();
case 'small':
screen_resize_small();

break;
case 'normal': screen_resize_normal();
case 'normal':
screen_resize_normal();

break;
case 'large': screen_resize_large();
case 'large':
screen_resize_large();

break;
}
Expand Down

0 comments on commit 9ae5942

Please sign in to comment.