BUG 10036 "No esta rezalizando un buen conteo de la..." SOLVED

- Incorrect the displaying of the paging toolbar
- Fix the displaying of the paging toolbar
* Available from version 2.0.46
This commit is contained in:
Victor Saisa Lopez
2012-11-28 12:29:23 -04:00
parent b80ea5c5f3
commit 378f6a095e
2 changed files with 25 additions and 22 deletions

View File

@@ -118,8 +118,8 @@ function chDir( directory, loadGridOnly ) {
if( directory == '' || conn && !conn.isLoading()) { if( directory == '' || conn && !conn.isLoading()) {
datastore.load({ datastore.load({
params:{ params:{
start:0, start: 0,
limit:25, limit: 100,
dir: directory, dir: directory,
node: directory, node: directory,
option:'gridDocuments', option:'gridDocuments',
@@ -737,8 +737,8 @@ datastore = new Ext.data.Store({
url : "../appFolder/appFolderAjax.php", url : "../appFolder/appFolderAjax.php",
directory : "/", directory : "/",
params : { params : {
start : 0, start: 0,
limit : 25, limit: 100,
dir : this.directory, dir : this.directory,
node : this.directory, node : this.directory,
option : "gridDocuments", option : "gridDocuments",
@@ -1082,11 +1082,11 @@ function filterDataStore(btn, e) {
} }
// add a paging toolbar to the grid's footer // add a paging toolbar to the grid's footer
var gridbb = new Ext.PagingToolbar({ var gridbb = new Ext.PagingToolbar({
store : datastore, store: datastore,
pageSize : 25 , pageSize: 100,
displayInfo : true, displayInfo: true,
// displayMsg : '% % %', displayMsg: _("ID_DISPLAY_TOTAL"),
emptyMsg : TRANSLATIONS.ID_DISPLAY_EMPTY, emptyMsg: _("ID_DISPLAY_EMPTY"),
beforePageText : TRANSLATIONS.ID_PAGE, beforePageText : TRANSLATIONS.ID_PAGE,
// afterPageText : 'of %', // afterPageText : 'of %',
firstText : TRANSLATIONS.ID_FIRST, firstText : TRANSLATIONS.ID_FIRST,
@@ -1299,8 +1299,8 @@ function loadDir() {
// console.trace(); // console.trace();
datastore.load({ datastore.load({
params : { params : {
start : 0, start: 0,
limit : 25, limit: 100,
dir : datastore.directory, dir : datastore.directory,
node : datastore.directory, node : datastore.directory,
option : 'gridDocuments', option : 'gridDocuments',

View File

@@ -61,17 +61,19 @@ cron.application = {
{ {
var record = grdpnlMain.getSelectionModel().getSelected(); var record = grdpnlMain.getSelectionModel().getSelected();
var strData = "<b>" + _("ID_DATE_LABEL") + "</b><br />" + record.get("DATE") + "<br />"; if (typeof record != "undefined") {
strData = strData + "<b>" + _("ID_WORKSPACE") + "</b><br />" + record.get("WORKSPACE") + "<br />"; var strData = "<b>" + _("ID_DATE_LABEL") + "</b><br />" + record.get("DATE") + "<br />";
strData = strData + "<b>" + _("ID_ACTION") + "</b><br />" + record.get("ACTION") + "<br />"; strData = strData + "<b>" + _("ID_WORKSPACE") + "</b><br />" + record.get("WORKSPACE") + "<br />";
strData = strData + "<b>" + _("ID_STATUS") + "</b><br />" + record.get("STATUS") + "<br />"; strData = strData + "<b>" + _("ID_ACTION") + "</b><br />" + record.get("ACTION") + "<br />";
strData = strData + "<b>" + _("ID_DESCRIPTION") + "</b><br />" + record.get("DESCRIPTION") + "<br />"; strData = strData + "<b>" + _("ID_STATUS") + "</b><br />" + record.get("STATUS") + "<br />";
strData = strData + "<b>" + _("ID_DESCRIPTION") + "</b><br />" + record.get("DESCRIPTION") + "<br />";
var formItems = Ext.getCmp("frmLogView").form.items; var formItems = Ext.getCmp("frmLogView").form.items;
formItems.items[0].setValue(strData); formItems.items[0].setValue(strData);
winLog.setTitle("Log - " + _("ID_WORKSPACE") + "&nbsp;" + record.get("WORKSPACE")); winLog.setTitle("Log - " + _("ID_WORKSPACE") + "&nbsp;" + record.get("WORKSPACE"));
winLog.show(); winLog.show();
}
} }
//Variables //Variables
@@ -233,7 +235,7 @@ cron.application = {
var btnInfoView = new Ext.Action({ var btnInfoView = new Ext.Action({
id: "btnInfoView", id: "btnInfoView",
text: _("ID_VIEW_INFO"), text: _("ID_CRON_INFO"),
iconCls: "button_menu_ext ss_sprite ss_zoom", iconCls: "button_menu_ext ss_sprite ss_zoom",
handler: function () handler: function ()
@@ -456,4 +458,5 @@ cron.application = {
} }
} }
Ext.onReady(cron.application.init, cron.application); Ext.onReady(cron.application.init, cron.application);