fix bug i sonia.rest.js

This commit is contained in:
Sebastian Sdorra
2010-09-06 13:05:01 +02:00
parent e0e033af6f
commit 38794de1ce

View File

@@ -104,7 +104,7 @@ Sonia.rest.Grid = Ext.extend(Ext.grid.GridPanel, {
items: [
{xtype: 'tbbutton', text: 'Add', scope: this, handler: this.showAddWindow},
{xtype: 'tbbutton', text: 'Edit', scope: this, handler: this.showEditWindow},
{xtype: 'tbbutton', text: 'Remove', scope: this, handler: this.remove},
{xtype: 'tbbutton', text: 'Remove', scope: this, handler: this.removeItem},
{xtype: 'tbbutton', text: 'Reload', scope: this, handler: this.reload},
{xtype: 'tbseparator'},
{xtype: 'label', text: 'Search: '},
@@ -230,7 +230,7 @@ Sonia.rest.Grid = Ext.extend(Ext.grid.GridPanel, {
}
},
remove: function(){
removeItem: function(){
if ( this.selModel.hasSelection() ){
var id = this.selModel.getSelected().data[this.idField];