fixed asset manager pagination

This commit is contained in:
Doug Bell 2008-06-12 19:02:55 +00:00
parent b01da5e8e0
commit 4eb7b10cd3
2 changed files with 7 additions and 2 deletions

View file

@ -540,6 +540,11 @@ ENDHTML
]
};
WebGUI.AssetManager.DefaultSortedBy = {
"key" : "lineage",
"dir" : YAHOO.widget.DataTable.CLASS_ASC
};
WebGUI.AssetManager.BuildQueryString
= function ( state, dt ) {
var query = ";recordOffset=" + state.pagination.recordOffset

View file

@ -217,7 +217,7 @@ WebGUI.AssetManager.initManager
};
// Send the request
dt.getDataSource().sendRequest(WebGUI.AssetManager.BuildQueryString(newState), oCallback);
dt.getDataSource().sendRequest(WebGUI.AssetManager.BuildQueryString(newState, dt), oCallback);
};
// Initialize the data table
@ -267,7 +267,7 @@ WebGUI.AssetManager.initManager
};
// Send the request
this.getDataSource().sendRequest(WebGUI.AssetManager.BuildQueryString(newState), oCallback);
this.getDataSource().sendRequest(WebGUI.AssetManager.BuildQueryString(newState, this), oCallback);
};
};