Fix Bug 6189 for IE

This commit is contained in:
Enrique Ponce de Leon
2011-02-23 15:22:43 +00:00
parent c39de6aba3
commit b467a2cdef

View File

@@ -4,7 +4,8 @@
*/ */
//Keyboard Events //Keyboard Events
new Ext.KeyMap(document, [ new Ext.KeyMap(document,
[
{ {
key: Ext.EventObject.F5, key: Ext.EventObject.F5,
fn: function(keycode, e) { fn: function(keycode, e) {
@@ -20,9 +21,9 @@ new Ext.KeyMap(document, [
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5'); Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
} }
} }
} }
, ,
{ {
key: Ext.EventObject.DELETE, key: Ext.EventObject.DELETE,
fn: function(k,e){ fn: function(k,e){
iGrid = Ext.getCmp('infoGrid'); iGrid = Ext.getCmp('infoGrid');
@@ -31,8 +32,8 @@ new Ext.KeyMap(document, [
DeleteButtonAction(); DeleteButtonAction();
} }
} }
}, },
{ {
key: Ext.EventObject.F2, key: Ext.EventObject.F2,
fn: function(k,e){ fn: function(k,e){
iGrid = Ext.getCmp('infoGrid'); iGrid = Ext.getCmp('infoGrid');
@@ -41,8 +42,8 @@ new Ext.KeyMap(document, [
EditGroupWindow(); EditGroupWindow();
} }
} }
} }
]); ]);
var store; var store;
var cmodel; var cmodel;
@@ -196,7 +197,7 @@ Ext.onReady(function(){
], ],
buttons: [ buttons: [
{text: _('ID_SAVE'), handler: SaveEditGroupAction}, {text: _('ID_SAVE'), handler: SaveEditGroupAction},
{text: _('ID_CANCEL'), handler: CloseWindow}, {text: _('ID_CANCEL'), handler: CloseWindow}
] ]
}); });
@@ -278,7 +279,6 @@ Ext.onReady(function(){
enableColumnResize: true, enableColumnResize: true,
enableHdMenu: true, enableHdMenu: true,
frame:false, frame:false,
//iconCls:'icon-grid',
columnLines: false, columnLines: false,
viewConfig: { viewConfig: {
forceFit:true forceFit:true
@@ -493,8 +493,8 @@ DeleteButtonAction = function(){
render_status = function(v){ render_status = function(v){
switch(v){ switch(v){
case 'ACTIVE': return '<font color="green">' + _('ID_ACTIVE') + '</font>'; break; case 'ACTIVE': return '<font color="green">' + _('ID_ACTIVE') + '</font>'; break;
case 'INACTIVE': return '<font color="red">' + _('ID_INACTIVE') + '</font>';; break; case 'INACTIVE': return '<font color="red">' + _('ID_INACTIVE') + '</font>'; break;
case 'VACATION': return '<font color="blue">' + _('ID_VACATION') + '</font>';; break; case 'VACATION': return '<font color="blue">' + _('ID_VACATION') + '</font>'; break;
} }
}; };