Commits

Sebastian Sdorra committed 13ee4ca

fix bug i sonia.rest.js

Comments (0)

Files changed (1)

scm-webapp/src/main/webapp/resources/js/sonia.rest.js

       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: '},
     }
   },
 
-  remove: function(){
+  removeItem: function(){
     if ( this.selModel.hasSelection() ){
       var id = this.selModel.getSelected().data[this.idField];