alecpl
2009-04-27 9f3579b1f8f02eb3f1d506657b36e425954013b4
- Fix wrong column sort order icons (#1485823)
- set defult sorting of new column to 'ASC'


4 files modified
22 ■■■■■ changed files
CHANGELOG 1 ●●●● patch | view | raw | blame | history
program/js/app.js 21 ●●●●● patch | view | raw | blame | history
skins/default/images/sort_asc.gif patch | view | raw | blame | history
skins/default/images/sort_desc.gif patch | view | raw | blame | history
CHANGELOG
@@ -1,6 +1,7 @@
CHANGELOG RoundCube Webmail
===========================
- Fix wrong column sort order icons (#1485823)
- Updated TinyMCE to 3.2.3 version
- Fix attachment names encoding when charset isn't specified in attachment part (#1484969)
- Fix message normal priority problem (#1485820)
program/js/app.js
@@ -599,20 +599,15 @@
        // get the type of sorting
        var a_sort = props.split('_');
        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 (sort_order==null)
          {
          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)
          break;
        if (this.env.sort_col==sort_col) {
          sort_order = this.env.sort_order=='ASC' ? 'DESC' : 'ASC';
      if (this.env.sort_order==sort_order)
            break;
    }
        // set table header class
        $('#rcm'+this.env.sort_col).removeClass('sorted'+(this.env.sort_order.toUpperCase()));
        $('#rcm'+sort_col).addClass('sorted'+sort_order);
skins/default/images/sort_asc.gif

skins/default/images/sort_desc.gif