Mercurial > lada > lada-client
comparison app/view/proben/Edit.js @ 491:850ccfe5f3c4
Code style.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 23:23:32 +0100 |
parents | 446e99cfd425 |
children | 7c0653e8d9f7 |
comparison
equal
deleted
inserted
replaced
490:446e99cfd425 | 491:850ccfe5f3c4 |
---|---|
21 autoScroll: true, | 21 autoScroll: true, |
22 modal: true, | 22 modal: true, |
23 | 23 |
24 initComponent: function() { | 24 initComponent: function() { |
25 console.log('open edit...'); | 25 console.log('open edit...'); |
26 this.buttons = [ | 26 this.buttons = [{ |
27 { | 27 text: 'Speichern', |
28 text: 'Speichern', | 28 action: 'save' |
29 action: 'save' | 29 }, { |
30 }, | 30 text: 'Abbrechen', |
31 { | 31 scope: this, |
32 text: 'Abbrechen', | 32 handler: this.close |
33 scope: this, | 33 }]; |
34 handler: this.close | |
35 } | |
36 ]; | |
37 this.width = Ext.getBody().getViewSize().width - 30; | 34 this.width = Ext.getBody().getViewSize().width - 30; |
38 this.height = Ext.getBody().getViewSize().height - 30; | 35 this.height = Ext.getBody().getViewSize().height - 30; |
39 // InitialConfig is the config object passed to the constructor on | 36 // InitialConfig is the config object passed to the constructor on |
40 // creation of this window. We need to pass it throuh to the form as | 37 // creation of this window. We need to pass it throuh to the form as |
41 // we need the "modelId" param to load the correct item. | 38 // we need the "modelId" param to load the correct item. |
42 var form = Ext.create('Lada.view.proben.EditForm', this.initialConfig); | 39 var form = Ext.create('Lada.view.proben.EditForm', |
40 this.initialConfig); | |
43 this.items = [form]; | 41 this.items = [form]; |
44 this.callParent(); | 42 this.callParent(); |
45 } | 43 } |
46 }); | 44 }); |
47 | 45 |