Mercurial > lada > lada-client
changeset 61:20a4f9aaecde
Removed old code.
author | Torsten Irländer <torsten.irlaender@intevation.de> |
---|---|
date | Wed, 29 May 2013 16:07:11 +0200 |
parents | 5db7ab34af6d |
children | 2d6c4f4c9b11 |
files | app/controller/Kommentare.js |
diffstat | 1 files changed, 0 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- 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');