Mercurial > lada > lada-client
diff app/controller/Kommentare.js @ 490:446e99cfd425
Updated views and controllers using the new model and stores.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 31 Oct 2014 21:28:31 +0100 |
parents | debfcc7713e3 |
children | 850ccfe5f3c4 |
line wrap: on
line diff
--- a/app/controller/Kommentare.js Fri Oct 31 21:11:25 2014 +0100 +++ b/app/controller/Kommentare.js Fri Oct 31 21:28:31 2014 +0100 @@ -15,10 +15,10 @@ 'kommentare.Create' ], stores: [ - 'Kommentare' + 'KommentareP' ], models: [ - 'Kommentar' + 'KommentarP' ], init: function() { console.log('Initialising the Kommentare controller'); @@ -46,7 +46,7 @@ }, addItem: function(button) { console.log('Adding new Kommentar for Probe ' + button.probeId); - var kommentar = Ext.create('Lada.model.Kommentar'); + var kommentar = Ext.create('Lada.model.KommentarP'); kommentar.set('probeId', button.probeId); var view = Ext.widget('kommentarecreate', {model: kommentar}); }, @@ -64,7 +64,7 @@ } }, createSuccess: function(form, record, operation) { - var store = this.getKommentareStore(); + var store = this.getKommentarePStore(); store.reload(); var win = form.up('window'); win.close();