matrix search fixes and performance improvements

This commit is contained in:
Yung Han Khoe 2009-02-15 16:08:48 +00:00
parent c1155d9ab9
commit d1680cf867
2 changed files with 28 additions and 23 deletions

View file

@ -37,16 +37,11 @@ YAHOO.util.Event.addListener(window, "load", function() {
var myDataTable = new YAHOO.widget.DataTable("compareForm", myColumnDefs,
this.myDataSource, {initialRequest:uri});
this.myDataSource.doBeforeParseData = function (oRequest, oFullResponse) {
myDataTable.getRecordSet().reset();
return oFullResponse;
}
var myDataSource = this.myDataSource;
var myCallback = function() {
myDataTable.getRecordSet().reset();
this.set("sortedBy", null);
this.onDataReturnAppendRows.apply(this,arguments);
this.set("sortedBy", null);
this.onDataReturnAppendRows.apply(this,arguments);
compareFormButton();
};
@ -66,6 +61,7 @@ YAHOO.util.Event.addListener(window, "load", function() {
}
myDataTable.getRecordSet().reset();
myDataTable.refreshView();
myDataTable.showTableMessage('Loading...');
myDataSource.sendRequest(newUri,callback2);