BUG 10698 "Imagen del search del Designer no esta...." SOLVED

- Imagen del search del Designer no esta alineada.

- Problema:
  Al ingresar a la opcion ADMIN->USER, la imagen "X" del Search no estaban alineados.

  Solucion:
  La imagen "X" del Search utilizaba la siguiente hoja de estilo: ctCls:'pm_search_x_button',
  se hizo un cambio por: ctCls:"pm_search_x_button_des", dando solucion al problema.

  Estara disponible en la version 2.5.2
This commit is contained in:
Luis Fernando Saisa Lopez
2013-09-18 10:13:59 -04:00
parent 01ddc122a7
commit 6a86af2587
9 changed files with 93 additions and 97 deletions

View File

@@ -123,7 +123,7 @@ Ext.onReady(function(){
clearTextButton = new Ext.Action({ clearTextButton = new Ext.Action({
text: 'X', text: 'X',
ctCls:'pm_search_x_button', ctCls:"pm_search_x_button_des",
handler: GridByDefault handler: GridByDefault
}); });

View File

@@ -158,25 +158,25 @@ function deleteCase() {
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;
} }
} }
}); });
} else { } else {
if( rows.length > 0 ) { if( rows.length > 0 ) {
ids = Array(); ids = Array();
for(i=0; i<rows.length; i++) for(i=0; i<rows.length; i++)
ids[i] = rows[i].get('APP_UID'); ids[i] = rows[i].get('APP_UID');
APP_UIDS = ids.join(','); APP_UIDS = ids.join(',');
Ext.Msg.confirm( Ext.Msg.confirm(
_('ID_CONFIRM'), _('ID_CONFIRM'),
(rows.length == 1) ? _('ID_MSG_CONFIRM_DELETE_CASE') : _('ID_MSG_CONFIRM_DELETE_CASES'), (rows.length == 1) ? _('ID_MSG_CONFIRM_DELETE_CASE') : _('ID_MSG_CONFIRM_DELETE_CASES'),
@@ -1199,7 +1199,7 @@ Ext.onReady ( function() {
var resetSearchButton = { var resetSearchButton = {
text:'X', text:'X',
ctCls:'pm_search_x_button', ctCls:"pm_search_x_button_des",
handler: function(){ handler: function(){
textSearch.setValue(''); textSearch.setValue('');
doSearch(); doSearch();
@@ -1329,12 +1329,12 @@ Ext.onReady ( function() {
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;
} }
@@ -1349,7 +1349,7 @@ Ext.onReady ( function() {
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText); Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
} }
} }
}); });
} }
}) })
}); });
@@ -1410,7 +1410,7 @@ Ext.onReady ( function() {
} }
//optionMenuPause.setMinValue('2010-11-04'); //optionMenuPause.setMinValue('2010-11-04');
var optionMenuReassignGlobal = {}; var optionMenuReassignGlobal = {};
optionMenuReassignGlobal.APP_UID = ""; optionMenuReassignGlobal.APP_UID = "";
optionMenuReassignGlobal.DEL_INDEX = ""; optionMenuReassignGlobal.DEL_INDEX = "";
@@ -1432,12 +1432,12 @@ Ext.onReady ( function() {
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;
} }
@@ -2242,12 +2242,12 @@ function reassign(){
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;
} }
@@ -2258,17 +2258,17 @@ function reassign(){
ids = ''; ids = '';
for(i=0; i<rows.length; i++) { for(i=0; i<rows.length; i++) {
// filtering duplicate tasks // filtering duplicate tasks
if( i != 0 ) ids += ','; if( i != 0 ) ids += ',';
ids += rows[i].get('APP_UID') + "|" + rows[i].get('TAS_UID')+ "|" + rows[i].get('DEL_INDEX'); ids += rows[i].get('APP_UID') + "|" + rows[i].get('TAS_UID')+ "|" + rows[i].get('DEL_INDEX');
} }
storeReassignCases.setBaseParam( 'APP_UIDS', ids); storeReassignCases.setBaseParam( 'APP_UIDS', ids);
//storeReassignCases.setBaseParam( 'action', 'to_reassign'); //storeReassignCases.setBaseParam( 'action', 'to_reassign');
storeReassignCases.load(); storeReassignCases.load();
newPopUp.show(); newPopUp.show();
comboUsersToReassign.disable(); comboUsersToReassign.disable();
//grid = reassignGrid.store.data; //grid = reassignGrid.store.data;
//Ext.Msg.alert ( grid ); //Ext.Msg.alert ( grid );
/* /*

View File

@@ -77,7 +77,7 @@ Ext.onReady(function(){
clearTextButton = new Ext.Action({ clearTextButton = new Ext.Action({
text: 'X', text: 'X',
ctCls:'pm_search_x_button', ctCls:"pm_search_x_button_des",
handler: GridByDefault handler: GridByDefault
}); });
@@ -218,7 +218,7 @@ Ext.onReady(function(){
}) })
}); });
infoGrid.on('rowcontextmenu', infoGrid.on('rowcontextmenu',
function (grid, rowIndex, evt) { function (grid, rowIndex, evt) {
var sm = grid.getSelectionModel(); var sm = grid.getSelectionModel();
sm.selectRow(rowIndex, sm.isSelected(rowIndex)); sm.selectRow(rowIndex, sm.isSelected(rowIndex));
@@ -226,10 +226,10 @@ Ext.onReady(function(){
this this
); );
infoGrid.on('contextmenu', infoGrid.on('contextmenu',
function (evt) { function (evt) {
evt.preventDefault(); evt.preventDefault();
}, },
this this
); );
@@ -270,7 +270,7 @@ ShowSelectedLog = function(){
Ext.getCmp('cstatus').setText(rowSelected.data.WS_CREATE_CASE_STATUS); Ext.getCmp('cstatus').setText(rowSelected.data.WS_CREATE_CASE_STATUS);
Ext.getCmp('rstatus').setText(rowSelected.data.WS_ROUTE_CASE_STATUS); Ext.getCmp('rstatus').setText(rowSelected.data.WS_ROUTE_CASE_STATUS);
w = new Ext.Window({ w = new Ext.Window({
autoHeight: true, autoHeight: true,
width: 550, width: 550,
resizable: false, resizable: false,
closable: false, closable: false,
@@ -305,5 +305,3 @@ UpdatePageConfig = function(pageSize){
params: {action:'updatePageSize', size: pageSize} params: {action:'updatePageSize', size: pageSize}
}); });
}; };

View File

@@ -123,11 +123,10 @@ Ext.onReady(function(){
clearTextButton = new Ext.Action({ clearTextButton = new Ext.Action({
text: 'X', text: 'X',
ctCls:'pm_search_x_button', ctCls:"pm_search_x_button_des",
handler: GridByDefault handler: GridByDefault
}); });
smodel = new Ext.grid.RowSelectionModel({ smodel = new Ext.grid.RowSelectionModel({
singleSelect: true, singleSelect: true,
listeners:{ listeners:{

View File

@@ -76,7 +76,7 @@ Ext.onReady(function(){
text: _('ID_EDIT'), text: _('ID_EDIT'),
iconCls: 'button_menu_ext ss_sprite ss_pencil', iconCls: 'button_menu_ext ss_sprite ss_pencil',
handler: EditCategory, handler: EditCategory,
disabled: true disabled: true
}); });
deleteButton = new Ext.Action({ deleteButton = new Ext.Action({
@@ -116,13 +116,13 @@ Ext.onReady(function(){
clearTextButton = new Ext.Action({ clearTextButton = new Ext.Action({
text: 'X', text: 'X',
ctCls:'pm_search_x_button', ctCls:"pm_search_x_button_des",
handler: GridByDefault handler: GridByDefault
}); });
newForm = new Ext.FormPanel({ newForm = new Ext.FormPanel({
url: 'processCategory_Ajax?action=saveNewCategory', url: 'processCategory_Ajax?action=saveNewCategory',
frame: true, frame: true,
items:[ items:[
{xtype: 'textfield', fieldLabel: _('ID_CATEGORY_NAME'), name: 'category', width: 250, allowBlank: false} {xtype: 'textfield', fieldLabel: _('ID_CATEGORY_NAME'), name: 'category', width: 250, allowBlank: false}
], ],
@@ -185,7 +185,7 @@ Ext.onReady(function(){
columns: [ columns: [
{id:'CATEGORY_UID', dataIndex: 'CATEGORY_UID', hidden:true, hideable:false}, {id:'CATEGORY_UID', dataIndex: 'CATEGORY_UID', hidden:true, hideable:false},
{header: _('ID_CATEGORY_NAME'), dataIndex: 'CATEGORY_NAME', width: 500, hidden:false, align:'left'}, {header: _('ID_CATEGORY_NAME'), dataIndex: 'CATEGORY_NAME', width: 500, hidden:false, align:'left'},
{header: _('ID_PROCESSES'), dataIndex: 'TOTAL_PROCESSES', width: 100, hidden: false, align: 'center'} {header: _('ID_PROCESSES'), dataIndex: 'TOTAL_PROCESSES', width: 100, hidden: false, align: 'center'}
] ]
}); });
@@ -258,7 +258,7 @@ Ext.onReady(function(){
}) })
}); });
infoGrid.on('rowcontextmenu', infoGrid.on('rowcontextmenu',
function (grid, rowIndex, evt) { function (grid, rowIndex, evt) {
var sm = grid.getSelectionModel(); var sm = grid.getSelectionModel();
sm.selectRow(rowIndex, sm.isSelected(rowIndex)); sm.selectRow(rowIndex, sm.isSelected(rowIndex));
@@ -266,10 +266,10 @@ Ext.onReady(function(){
this this
); );
infoGrid.on('contextmenu', infoGrid.on('contextmenu',
function (evt) { function (evt) {
evt.preventDefault(); evt.preventDefault();
}, },
this this
); );
@@ -459,7 +459,7 @@ DeleteCategory = function(){
deleteButton.disable(); //Disable Delete Button deleteButton.disable(); //Disable Delete Button
resp = Ext.decode(r.responseText); resp = Ext.decode(r.responseText);
if (resp.success){ if (resp.success){
PMExt.notify(_('ID_PROCESS_CATEGORY'),_('ID_CATEGORY_SUCCESS_DELETE')); PMExt.notify(_('ID_PROCESS_CATEGORY'),_('ID_CATEGORY_SUCCESS_DELETE'));
}else{ }else{
PMExt.error(_('ID_ERROR'),_('ID_MSG_AJAX_FAILURE')); PMExt.error(_('ID_ERROR'),_('ID_MSG_AJAX_FAILURE'));
} }
@@ -487,7 +487,7 @@ GridByDefault = function(){
//Do Search Function //Do Search Function
DoSearch = function(){ DoSearch = function(){
infoGrid.store.load({params: {textFilter: searchText.getValue()}}); infoGrid.store.load({params: {textFilter: searchText.getValue()}});
}; };
//Update Page Size Configuration //Update Page Size Configuration

View File

@@ -4,7 +4,7 @@
*/ */
//Keyboard Events //Keyboard Events
new Ext.KeyMap(document, new Ext.KeyMap(document,
[ [
{ {
key: Ext.EventObject.F5, key: Ext.EventObject.F5,
@@ -77,7 +77,7 @@ Ext.onReady(function(){
text: _('ID_EDIT'), text: _('ID_EDIT'),
iconCls: 'button_menu_ext ss_sprite ss_pencil', iconCls: 'button_menu_ext ss_sprite ss_pencil',
handler: EditRole, handler: EditRole,
disabled: true disabled: true
}); });
deleteButton = new Ext.Action({ deleteButton = new Ext.Action({
@@ -130,7 +130,7 @@ Ext.onReady(function(){
clearTextButton = new Ext.Action({ clearTextButton = new Ext.Action({
text: 'X', text: 'X',
ctCls:'pm_search_x_button', ctCls:"pm_search_x_button_des",
handler: GridByDefault handler: GridByDefault
}); });
@@ -141,7 +141,7 @@ Ext.onReady(function(){
newForm = new Ext.FormPanel({ newForm = new Ext.FormPanel({
url: 'roles_Ajax?request=saveNewRole', url: 'roles_Ajax?request=saveNewRole',
frame: true, frame: true,
items:[ items:[
{xtype: 'textfield', fieldLabel: _('ID_CODE'), name: 'code', width: 250, allowBlank: false, {xtype: 'textfield', fieldLabel: _('ID_CODE'), name: 'code', width: 250, allowBlank: false,
listeners: { listeners: {
@@ -172,17 +172,17 @@ Ext.onReady(function(){
}); });
} }
} }
}}, }},
{ {
xtype: 'combo', xtype: 'combo',
fieldLabel: _('ID_STATUS'), fieldLabel: _('ID_STATUS'),
hiddenName: 'status', hiddenName: 'status',
typeAhead: true, typeAhead: true,
mode: 'local', mode: 'local',
store: comboStatusStore, store: comboStatusStore,
displayField: 'value', displayField: 'value',
valueField:'id', valueField:'id',
allowBlank: false, allowBlank: false,
editable:false, editable:false,
triggerAction: 'all', triggerAction: 'all',
emptyText: _('ID_SELECT_STATUS'), emptyText: _('ID_SELECT_STATUS'),
@@ -202,7 +202,7 @@ Ext.onReady(function(){
items:[ items:[
{xtype: 'textfield', name: 'rol_uid', hidden: true }, {xtype: 'textfield', name: 'rol_uid', hidden: true },
{xtype: 'textfield', fieldLabel: _('ID_CODE'), name: 'code', width: 250, allowBlank: false, readOnly: true, hidden: !PARTNER_FLAG ? false : true}, {xtype: 'textfield', fieldLabel: _('ID_CODE'), name: 'code', width: 250, allowBlank: false, readOnly: true, hidden: !PARTNER_FLAG ? false : true},
{xtype: 'textfield', fieldLabel: _('ID_NAME'), name: 'name', width: 200, allowBlank: false, {xtype: 'textfield', fieldLabel: _('ID_NAME'), name: 'name', width: 200, allowBlank: false,
listeners: { listeners: {
blur : function(ob) blur : function(ob)
{ {
@@ -218,15 +218,15 @@ Ext.onReady(function(){
} }
}}, }},
{ {
xtype: 'combo', xtype: 'combo',
fieldLabel: _('ID_STATUS'), fieldLabel: _('ID_STATUS'),
hiddenName: 'status', hiddenName: 'status',
typeAhead: true, typeAhead: true,
mode: 'local', mode: 'local',
store: comboStatusStore, store: comboStatusStore,
displayField: 'value', displayField: 'value',
valueField:'id', valueField:'id',
allowBlank: false, allowBlank: false,
editable:false, editable:false,
triggerAction: 'all', triggerAction: 'all',
emptyText: _('ID_SELECT_STATUS'), emptyText: _('ID_SELECT_STATUS'),
@@ -358,7 +358,7 @@ Ext.onReady(function(){
}) })
}); });
infoGrid.on('rowcontextmenu', infoGrid.on('rowcontextmenu',
function (grid, rowIndex, evt) { function (grid, rowIndex, evt) {
var sm = grid.getSelectionModel(); var sm = grid.getSelectionModel();
sm.selectRow(rowIndex, sm.isSelected(rowIndex)); sm.selectRow(rowIndex, sm.isSelected(rowIndex));
@@ -366,10 +366,10 @@ Ext.onReady(function(){
this this
); );
infoGrid.on('contextmenu', infoGrid.on('contextmenu',
function (evt) { function (evt) {
evt.preventDefault(); evt.preventDefault();
}, },
this this
); );
@@ -457,9 +457,9 @@ SaveNewRole = function(){
break; break;
} }
} }
}); });
}else{ }else{
PMExt.error(_('ID_ROLES'),_('ID_ROLE_EXISTS')); PMExt.error(_('ID_ROLES'),_('ID_ROLE_EXISTS'));
} }
}, },
failure: function(r,o){ failure: function(r,o){
@@ -630,7 +630,7 @@ GridByDefault = function(){
//Do Search Function //Do Search Function
DoSearch = function(){ DoSearch = function(){
infoGrid.store.load({params: {textFilter: searchText.getValue()}}); infoGrid.store.load({params: {textFilter: searchText.getValue()}});
}; };
//Render Date Function //Render Date Function

View File

@@ -64,45 +64,45 @@ var cal_default = '00000000000000000000000000000001';
Ext.onReady(function(){ Ext.onReady(function(){
Ext.QuickTips.init(); Ext.QuickTips.init();
pageSize = parseInt(CONFIG.pageSize); pageSize = parseInt(CONFIG.pageSize);
newButton = new Ext.Action({ newButton = new Ext.Action({
text: _('ID_NEW'), text: _('ID_NEW'),
iconCls: 'button_menu_ext ss_sprite ss_add', iconCls: 'button_menu_ext ss_sprite ss_add',
handler: NewCalendarAction handler: NewCalendarAction
}); });
editButton = new Ext.Action({ editButton = new Ext.Action({
text: _('ID_EDIT'), text: _('ID_EDIT'),
iconCls: 'button_menu_ext ss_sprite ss_pencil', iconCls: 'button_menu_ext ss_sprite ss_pencil',
handler: EditCalendarAction, handler: EditCalendarAction,
disabled: true disabled: true
}); });
deleteButton = new Ext.Action({ deleteButton = new Ext.Action({
text: _('ID_DELETE'), text: _('ID_DELETE'),
iconCls: 'button_menu_ext ss_sprite ss_delete', iconCls: 'button_menu_ext ss_sprite ss_delete',
handler: DeleteButtonAction, handler: DeleteButtonAction,
disabled: true disabled: true
}); });
copyButton = new Ext.Action({ copyButton = new Ext.Action({
text: _('ID_COPY'), text: _('ID_COPY'),
iconCls: 'button_menu_ext ss_sprite ss_calendar_add', iconCls: 'button_menu_ext ss_sprite ss_calendar_add',
handler: CopyButtonAction, handler: CopyButtonAction,
disabled: true disabled: true
}); });
searchButton = new Ext.Action({ searchButton = new Ext.Action({
text: _('ID_SEARCH'), text: _('ID_SEARCH'),
handler: DoSearch handler: DoSearch
}); });
contextMenu = new Ext.menu.Menu({ contextMenu = new Ext.menu.Menu({
items: [editButton, deleteButton,'-',copyButton] items: [editButton, deleteButton,'-',copyButton]
}); });
searchText = new Ext.form.TextField ({ searchText = new Ext.form.TextField ({
id: 'searchTxt', id: 'searchTxt',
ctCls:'pm_search_text_field', ctCls:'pm_search_text_field',
@@ -121,14 +121,14 @@ Ext.onReady(function(){
} }
} }
}); });
clearTextButton = new Ext.Action({ clearTextButton = new Ext.Action({
text: 'X', text: 'X',
ctCls:'pm_search_x_button', ctCls:"pm_search_x_button_des",
handler: GridByDefault handler: GridByDefault
}); });
smodel = new Ext.grid.RowSelectionModel({ smodel = new Ext.grid.RowSelectionModel({
singleSelect: true, singleSelect: true,
listeners:{ listeners:{
@@ -145,7 +145,7 @@ Ext.onReady(function(){
} }
} }
}); });
store = new Ext.data.GroupingStore( { store = new Ext.data.GroupingStore( {
proxy : new Ext.data.HttpProxy({ proxy : new Ext.data.HttpProxy({
url: 'calendar_Ajax?action=calendarList' url: 'calendar_Ajax?action=calendarList'
@@ -164,7 +164,7 @@ Ext.onReady(function(){
] ]
}) })
}); });
cmodel = new Ext.grid.ColumnModel({ cmodel = new Ext.grid.ColumnModel({
defaults: { defaults: {
width: 50, width: 50,
@@ -180,13 +180,13 @@ Ext.onReady(function(){
{header: _('ID_TASKS'), dataIndex: 'TOTAL_TASKS', width: 69, align:'center'} {header: _('ID_TASKS'), dataIndex: 'TOTAL_TASKS', width: 69, align:'center'}
] ]
}); });
storePageSize = new Ext.data.SimpleStore({ storePageSize = new Ext.data.SimpleStore({
fields: ['size'], fields: ['size'],
data: [['20'],['30'],['40'],['50'],['100']], data: [['20'],['30'],['40'],['50'],['100']],
autoLoad: true autoLoad: true
}); });
comboPageSize = new Ext.form.ComboBox({ comboPageSize = new Ext.form.ComboBox({
typeAhead : false, typeAhead : false,
mode : 'local', mode : 'local',
@@ -204,9 +204,9 @@ Ext.onReady(function(){
} }
} }
}); });
comboPageSize.setValue(pageSize); comboPageSize.setValue(pageSize);
bbarpaging = new Ext.PagingToolbar({ bbarpaging = new Ext.PagingToolbar({
pageSize: pageSize, pageSize: pageSize,
store: store, store: store,
@@ -215,8 +215,8 @@ Ext.onReady(function(){
emptyMsg: _('ID_GRID_PAGE_NO_CALENDAR_MESSAGE'), emptyMsg: _('ID_GRID_PAGE_NO_CALENDAR_MESSAGE'),
items: ['-',_('ID_PAGE_SIZE')+':',comboPageSize] items: ['-',_('ID_PAGE_SIZE')+':',comboPageSize]
}); });
infoGrid = new Ext.grid.GridPanel({ infoGrid = new Ext.grid.GridPanel({
region: 'center', region: 'center',
layout: 'fit', layout: 'fit',
@@ -247,15 +247,15 @@ Ext.onReady(function(){
groupTextTpl: '{text}' groupTextTpl: '{text}'
}) })
}); });
infoGrid.on('rowcontextmenu', infoGrid.on('rowcontextmenu',
function (grid, rowIndex, evt) { function (grid, rowIndex, evt) {
var sm = grid.getSelectionModel(); var sm = grid.getSelectionModel();
sm.selectRow(rowIndex, sm.isSelected(rowIndex)); sm.selectRow(rowIndex, sm.isSelected(rowIndex));
}, },
this this
); );
infoGrid.on('contextmenu', function(evt){evt.preventDefault();}, this); infoGrid.on('contextmenu', function(evt){evt.preventDefault();}, this);
infoGrid.addListener('rowcontextmenu',onMessageContextMenu, this); infoGrid.addListener('rowcontextmenu',onMessageContextMenu, this);
infoGrid.store.load(); infoGrid.store.load();
@@ -293,7 +293,7 @@ GridByDefault = function(){
//Do Search Function //Do Search Function
DoSearch = function(){ DoSearch = function(){
infoGrid.store.load({params: {textFilter: searchText.getValue()}}); infoGrid.store.load({params: {textFilter: searchText.getValue()}});
}; };
//Edit Calendar Action //Edit Calendar Action
@@ -333,13 +333,13 @@ DeleteButtonAction = function(){
failure: function(r,o){ failure: function(r,o){
viewport.getEl().unmask(); viewport.getEl().unmask();
} }
}); });
} }
} }
); );
}else{ }else{
PMExt.error(_('ID_CALENDARS'),_('ID_MSG_CANNOT_DELETE_CALENDAR')); PMExt.error(_('ID_CALENDARS'),_('ID_MSG_CANNOT_DELETE_CALENDAR'));
} }
}, },
failure: function(r,o){ failure: function(r,o){
viewport.getEl().unmask(); viewport.getEl().unmask();
@@ -359,7 +359,7 @@ render_status = function(v){
//Members Button Action //Members Button Action
CopyButtonAction = function(){ CopyButtonAction = function(){
rowSelected = infoGrid.getSelectionModel().getSelected(); rowSelected = infoGrid.getSelectionModel().getSelected();
if (rowSelected){ if (rowSelected){
location.href = '../admin/calendarEdit?cp=1&id=' + rowSelected.data.CALENDAR_UID; location.href = '../admin/calendarEdit?cp=1&id=' + rowSelected.data.CALENDAR_UID;
} }
}; };

View File

@@ -120,20 +120,19 @@ Ext.onReady(function(){
clearTextButton = new Ext.Action({ clearTextButton = new Ext.Action({
text: 'X', text: 'X',
ctCls:'pm_search_x_button', ctCls:"pm_search_x_button_des",
handler: GridByDefault handler: GridByDefault
}); });
smodel = new Ext.grid.RowSelectionModel({ smodel = new Ext.grid.RowSelectionModel({
singleSelect: true, singleSelect: true,
listeners:{ listeners:{
rowselect: function(sm){ rowselect: function(sm){
rowSelected = infoGrid.getSelectionModel().getSelected(); rowSelected = infoGrid.getSelectionModel().getSelected();
if((rowSelected.data.SKIN_FOLDER_ID)&&(rowSelected.data.SKIN_FOLDER_ID!="classic")&&(rowSelected.data.SKIN_FOLDER_ID!="neoclassic")){ if((rowSelected.data.SKIN_FOLDER_ID)&&(rowSelected.data.SKIN_FOLDER_ID!="classic")&&(rowSelected.data.SKIN_FOLDER_ID!="neoclassic")){
exportButton.enable(); exportButton.enable();
if (rowSelected.data.SKIN_STATUS!='Inactive') { if (rowSelected.data.SKIN_STATUS!='Inactive') {
deleteButton.disable(); deleteButton.disable();
} else { } else {
@@ -662,7 +661,7 @@ importSkin = function(){
if( !action.result ) { if( !action.result ) {
Ext.MessageBox.alert( _('ID_ERROR') , _('ID_ERROR')); Ext.MessageBox.alert( _('ID_ERROR') , _('ID_ERROR'));
return; return;
} }
Ext.MessageBox.alert( _('ID_ERROR') , action.result.error); Ext.MessageBox.alert( _('ID_ERROR') , action.result.error);

View File

@@ -155,8 +155,8 @@ Ext.onReady(function(){
}); });
clearTextButton = new Ext.Action({ clearTextButton = new Ext.Action({
text: 'X', text: 'X',
ctCls:'pm_search_x_button', ctCls:"pm_search_x_button_des",
handler: GridByDefault handler: GridByDefault
}); });