BUG 13558 "Pagination of Documents Menu is not wortking" SOLVED
- Pagination of Documents Menu is not wortking.
- Problema:
Cuando se lista los documentos en HOME>Documents, y seleccionado una carpeta del arbol, se muestra los documentos
generados; al momento de pasar a la siguiente pagina se muestra una pagina en blanco.
Solucion:
Se completa en la siguiente funcion a la condicion que se tiene una condicion mas "options.params.dir":
datastore.on("beforeload",
function(ds, options) {
...
var dirAux = (itemSelected.length == 0 && options.params.dir)? ... : ...;
var nodeAux = (itemSelected.length == 0 && options.params.dir)? ... : ...;
...
});
Con esta condicion al pasar de una pagina a otra, el listado de documentos se mostrara correctamente.
Este cambio estara disponible a partir de la version 2.5.2
This commit is contained in:
@@ -466,12 +466,12 @@ function openActionDialog(caller, action, dataAux)
|
|||||||
icon: Ext.MessageBox.ERROR,
|
icon: Ext.MessageBox.ERROR,
|
||||||
buttons: Ext.MessageBox.OK,
|
buttons: Ext.MessageBox.OK,
|
||||||
fn : function(btn) {
|
fn : function(btn) {
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
prnt = parent.parent;
|
prnt = parent.parent;
|
||||||
top.location = top.location;
|
top.location = top.location;
|
||||||
}
|
}
|
||||||
catch (err)
|
catch (err)
|
||||||
{
|
{
|
||||||
parent.location = parent.location;
|
parent.location = parent.location;
|
||||||
}
|
}
|
||||||
@@ -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