Mercurial > lada > lada-client
comparison app/controller/grid/MKommentar.js @ 700:1e76aec72815
Renamed function edit to gridSave
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 27 Mar 2015 08:43:37 +0100 |
parents | 5b2cbc6bc39a |
children | f0bc5387abcc |
comparison
equal
deleted
inserted
replaced
699:04f266eb2fd5 | 700:1e76aec72815 |
---|---|
10 extend: 'Ext.app.Controller', | 10 extend: 'Ext.app.Controller', |
11 | 11 |
12 init: function() { | 12 init: function() { |
13 this.control({ | 13 this.control({ |
14 'mkommentargrid': { | 14 'mkommentargrid': { |
15 edit: this.edit, | 15 edit: this.gridSave, |
16 canceledit: this.cancelEdit | 16 canceledit: this.cancelEdit |
17 }, | 17 }, |
18 'mkommentargrid button[action=add]': { | 18 'mkommentargrid button[action=add]': { |
19 click: this.add | 19 click: this.add |
20 }, | 20 }, |
22 click: this.remove | 22 click: this.remove |
23 } | 23 } |
24 }); | 24 }); |
25 }, | 25 }, |
26 | 26 |
27 edit: function(editor, context) { | 27 gridSave: function(editor, context) { |
28 context.record.save({ | 28 context.record.save({ |
29 success: function(record, response) { | 29 success: function(record, response) { |
30 context.grid.initData(); | 30 context.grid.initData(); |
31 context.grid.up('window').initData(); | 31 context.grid.up('window').initData(); |
32 }, | 32 }, |