fixed asset manager pagination
This commit is contained in:
parent
b01da5e8e0
commit
4eb7b10cd3
2 changed files with 7 additions and 2 deletions
|
|
@ -540,6 +540,11 @@ ENDHTML
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
|
WebGUI.AssetManager.DefaultSortedBy = {
|
||||||
|
"key" : "lineage",
|
||||||
|
"dir" : YAHOO.widget.DataTable.CLASS_ASC
|
||||||
|
};
|
||||||
|
|
||||||
WebGUI.AssetManager.BuildQueryString
|
WebGUI.AssetManager.BuildQueryString
|
||||||
= function ( state, dt ) {
|
= function ( state, dt ) {
|
||||||
var query = ";recordOffset=" + state.pagination.recordOffset
|
var query = ";recordOffset=" + state.pagination.recordOffset
|
||||||
|
|
|
||||||
|
|
@ -217,7 +217,7 @@ WebGUI.AssetManager.initManager
|
||||||
};
|
};
|
||||||
|
|
||||||
// Send the request
|
// Send the request
|
||||||
dt.getDataSource().sendRequest(WebGUI.AssetManager.BuildQueryString(newState), oCallback);
|
dt.getDataSource().sendRequest(WebGUI.AssetManager.BuildQueryString(newState, dt), oCallback);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Initialize the data table
|
// Initialize the data table
|
||||||
|
|
@ -267,7 +267,7 @@ WebGUI.AssetManager.initManager
|
||||||
};
|
};
|
||||||
|
|
||||||
// Send the request
|
// Send the request
|
||||||
this.getDataSource().sendRequest(WebGUI.AssetManager.BuildQueryString(newState), oCallback);
|
this.getDataSource().sendRequest(WebGUI.AssetManager.BuildQueryString(newState, this), oCallback);
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue