From f5d35c68bf588f38e91d58d8ab7569ee0874d28a Mon Sep 17 00:00:00 2001 From: Julio Cesar Laura Date: Mon, 12 Nov 2012 11:22:46 -0400 Subject: [PATCH] BUG 10023 Paginador de la opcion skins no funciona SOLVED - Paginador no funciona debido a que se copio el code de algun otro modulo y nunca se lo edito - Despues de evaluar el modulo de skins hemos decidido quitar el paginador y mostrar todos los skins existentes, desde la version 2.0.46 ya se puede asociar skins para determinados workspaces lo que nos ayudara mantener la cantidad de skins manejable en una sola pagina --- workflow/engine/templates/setup/skinList.js | 55 +-------------------- 1 file changed, 1 insertion(+), 54 deletions(-) diff --git a/workflow/engine/templates/setup/skinList.js b/workflow/engine/templates/setup/skinList.js index 946ac7925..345bd7ea0 100755 --- a/workflow/engine/templates/setup/skinList.js +++ b/workflow/engine/templates/setup/skinList.js @@ -54,15 +54,12 @@ var deleteButton; var searchButton; var searchText; var contextMenu; -var pageSize; var classicSkin = '00000000000000000000000000000001'; Ext.onReady(function(){ Ext.QuickTips.init(); - pageSize = parseInt(CONFIG.pageSize); - newButton = new Ext.Action({ text: _('ID_NEW'), iconCls: 'button_menu_ext ss_sprite ss_add', @@ -270,7 +267,7 @@ Ext.onReady(function(){ align:'center', renderer: showdate }, - + { header: _('ID_STATUS'), dataIndex: 'SKIN_STATUS', @@ -282,42 +279,6 @@ Ext.onReady(function(){ ] }); - storePageSize = new Ext.data.SimpleStore({ - fields: ['size'], - data: [['20'],['30'],['40'],['50'],['100']], - autoLoad: true - }); - - comboPageSize = new Ext.form.ComboBox({ - typeAhead : false, - mode : 'local', - triggerAction : 'all', - store: storePageSize, - valueField: 'size', - displayField: 'size', - width: 50, - editable: false, - listeners:{ - select: function(c,d,i){ - UpdatePageConfig(d.data['size']); - bbarpaging.pageSize = parseInt(d.data['size']); - bbarpaging.moveFirst(); - } - } - }); - - comboPageSize.setValue(pageSize); - - bbarpaging = new Ext.PagingToolbar({ - pageSize: pageSize, - store: store, - displayInfo: true, - displayMsg: _('ID_GRID_PAGE_DISPLAYING_SKIN_MESSAGE') + '    ', - emptyMsg: _('ID_GRID_PAGE_NO_SKIN_MESSAGE')//, - //items: ['-',_('ID_PAGE_SIZE')+':',comboPageSize] - }); - - infoGrid = new Ext.grid.GridPanel({ region: 'center', layout: 'fit', @@ -341,7 +302,6 @@ Ext.onReady(function(){ tbar: [newButton, '-', importButton,exportButton,'-',deleteButton, { xtype: 'tbfill' }, searchText,clearTextButton,searchButton], - bbar: bbarpaging, listeners: { rowdblclick: function(grid, n,e){ rowSelected = infoGrid.getSelectionModel().getSelected(); @@ -817,19 +777,6 @@ deleteSkin = function(){ ); } - - -//Update Page Size Configuration -UpdatePageConfig = function(pageSize){ - Ext.Ajax.request({ - url: 'calendar_Ajax', - params: { - action:'updatePageSize', - size: pageSize - } - }); -}; - function changeSkin(newSkin,currentSkin){ Ext.Ajax.request({ url: 'clearCompiledAjax',