Changeset 1b97b4


Ignore:
Timestamp:
Dec 5, 2011, 1:04:00 PM (10 years ago)
Author:
rene <rene@…>
Branches:
ng_0.8
Children:
c78ef6
Parents:
554ed7
Message:

backported fixes from 11bcb7373760 - sorting and filter view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_rdfDataTree.js

    r554ed7 r1b97b4  
    8787       
    8888        //restore scroll position
    89         if (topVisibleRow) {
     89        if (topVisibleRow && topVisibleRow <= this.idTable.length) {
    9090            this.treeElem.treeBoxObject.scrollToRow(topVisibleRow);
    9191        }
     
    125125            return 0;
    126126        }
    127         if (columnName) this.idTable.sort(columnSort);
     127        if (!columnName)
     128          columnName = this.treeElem.getAttribute("sortResource")
     129       
     130        this.idTable.sort(columnSort);
    128131       
    129132        //setting these will make the sort option persist
     
    334337        for each (var treeType in rdfDataTreeCollection.treeTypes) {
    335338            rdfDataTreeCollection.trees[treeType].idData = null;
    336             rdfDataTreeCollection.trees[treeType].idTable = null;
    337339            rdfDataTreeCollection.trees[treeType].loadTable()
    338340        }
Note: See TracChangeset for help on using the changeset viewer.