Merge pull request #2137 from luisfernandosl/BUG-13558
BUG 13558 "Pagination of Documents Menu is not wortking" SOLVED
This commit is contained in:
@@ -865,8 +865,12 @@ var datastore = new Ext.data.Store({
|
|||||||
datastore.on("beforeload",
|
datastore.on("beforeload",
|
||||||
function(ds, options) {
|
function(ds, options) {
|
||||||
|
|
||||||
options.params.dir = (itemSelected.length === 0) ? options.params.dir : ds.directory;
|
var dirAux = (itemSelected.length == 0 && options.params.dir)? options.params.dir : ds.directory;
|
||||||
options.params.node = (itemSelected.length === 0) ? options.params.dir : ds.directory;
|
var nodeAux = (itemSelected.length == 0 && options.params.dir)? options.params.dir : ds.directory;
|
||||||
|
|
||||||
|
options.params.dir = dirAux;
|
||||||
|
options.params.node = nodeAux;
|
||||||
|
|
||||||
options.params.option = "gridDocuments";
|
options.params.option = "gridDocuments";
|
||||||
options.params.sendWhat = datastore.sendWhat;
|
options.params.sendWhat = datastore.sendWhat;
|
||||||
if (options.params.dir == "ASC" || options.params.dir == "DESC") {
|
if (options.params.dir == "ASC" || options.params.dir == "DESC") {
|
||||||
|
|||||||
Reference in New Issue
Block a user