- Fix wrong column sort order icons (#1485823)

- set defult sorting of new column to 'ASC'
release-0.6
alecpl 16 years ago
parent 29da6414db
commit 9f3579b1f8

@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail CHANGELOG RoundCube Webmail
=========================== ===========================
- Fix wrong column sort order icons (#1485823)
- Updated TinyMCE to 3.2.3 version - Updated TinyMCE to 3.2.3 version
- Fix attachment names encoding when charset isn't specified in attachment part (#1484969) - Fix attachment names encoding when charset isn't specified in attachment part (#1484969)
- Fix message normal priority problem (#1485820) - Fix message normal priority problem (#1485820)

@ -599,19 +599,14 @@ function rcube_webmail()
// get the type of sorting // get the type of sorting
var a_sort = props.split('_'); var a_sort = props.split('_');
var sort_col = a_sort[0]; var sort_col = a_sort[0];
var sort_order = a_sort[1] ? a_sort[1].toUpperCase() : null; var sort_order = a_sort[1] ? a_sort[1].toUpperCase() : 'ASC';
// no sort order specified: toggle if (this.env.sort_col==sort_col) {
if (sort_order==null) sort_order = this.env.sort_order=='ASC' ? 'DESC' : 'ASC';
{
if (this.env.sort_col==sort_col)
sort_order = this.env.sort_order=='ASC' ? 'DESC' : 'ASC';
else
sort_order = this.env.sort_order;
}
if (this.env.sort_col==sort_col && this.env.sort_order==sort_order) if (this.env.sort_order==sort_order)
break; break;
}
// set table header class // set table header class
$('#rcm'+this.env.sort_col).removeClass('sorted'+(this.env.sort_order.toUpperCase())); $('#rcm'+this.env.sort_col).removeClass('sorted'+(this.env.sort_order.toUpperCase()));

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 B

After

Width:  |  Height:  |  Size: 123 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 123 B

After

Width:  |  Height:  |  Size: 121 B

Loading…
Cancel
Save