# HG changeset patch # User Torsten Irländer # Date 1369836431 -7200 # Node ID 20a4f9aaecdea7d8b8b72287b3d859915f063bdf # Parent 5db7ab34af6d223e771334e81c6b1fdbfdc94654 Removed old code. diff -r 5db7ab34af6d -r 20a4f9aaecde app/controller/Kommentare.js --- a/app/controller/Kommentare.js Wed May 29 16:06:43 2013 +0200 +++ b/app/controller/Kommentare.js Wed May 29 16:07:11 2013 +0200 @@ -28,9 +28,6 @@ 'kommentaredit button[action=save]': { click: this.saveKommentar } - //'probenedit button[action=save]': { - // click: this.updateProbe - //} }); }, addKommentar: function(button) { @@ -45,7 +42,6 @@ // Get selected item in grid var grid = button.up('grid'); var selection = grid.getView().getSelectionModel().getSelection()[0]; - console.log("Searching grid"); Ext.MessageBox.confirm('Löschen', 'Sind Sie sicher?', function(btn){ if(btn === 'yes'){ var store = grid.getStore(); @@ -58,28 +54,11 @@ }); }, editKommentar: function(grid, record) { - console.log('Double click on ' + record.get('id')); // Create new window to edit the seletced record. var view = Ext.widget('kommentaredit'); var form = view.down('form'); form.loadRecord(record); }, - updateKommentar: function(button) { - //console.log('Click save'); - //// We only have a reference to the button here but we really wnat to - //// get the form and the window. So first get the window and form and - //// the the record an values. - //var win = button.up('window'); - //var form = win.down('form'); - //var record = form.getRecord(); - //var values = form.getValues(); - - //record.set(values); - //win.close(); - //// synchronize the store after editing the record - //// NOTE: The function 'getProbenStore' will be generated - //// dynamically based on the Name of the configured Store!!! - //this.getProbenStore().sync(); saveKommentar: function(button) { var win = button.up('window'); var form = win.down('form');