diff app/controller/Kommentare.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
line wrap: on
line diff
--- a/app/controller/Kommentare.js	Fri Oct 31 21:28:31 2014 +0100
+++ b/app/controller/Kommentare.js	Fri Oct 31 23:23:32 2014 +0100
@@ -11,19 +11,24 @@
  */
 Ext.define('Lada.controller.Kommentare', {
     extend: 'Lada.controller.Base',
+
     views: [
         'kommentare.Create'
     ],
+
     stores: [
         'KommentareP'
     ],
+
     models: [
         'KommentarP'
     ],
+
     init: function() {
         console.log('Initialising the Kommentare controller');
         this.callParent();
     },
+
     addListeners: function() {
         this.control({
             'kommentarelist': {
@@ -44,25 +49,33 @@
             }
         });
     },
+
     addItem: function(button) {
         console.log('Adding new Kommentar for Probe ' + button.probeId);
         var kommentar = Ext.create('Lada.model.KommentarP');
         kommentar.set('probeId', button.probeId);
-        var view = Ext.widget('kommentarecreate', {model: kommentar});
+        var view = Ext.widget('kommentarecreate', {
+            model: kommentar
+        });
     },
+
     editItem: function(grid, record) {
         console.log('Editing Kommentar');
         record.getAuthInfo(this.initEditWindow)
         console.log("Loaded Kommentar with ID " + record.getId()); //outputs ID
     },
+
     initEditWindow: function(record, readonly, owner) {
-        var view = Ext.widget('kommentarecreate', {model: record});
+        var view = Ext.widget('kommentarecreate', {
+            model: record
+        });
         var ignore = Array();
         if (readonly) {
             var form = view.down('form');
             form.setReadOnly(true, ignore);
         }
     },
+
     createSuccess: function(form, record, operation) {
         var store = this.getKommentarePStore();
         store.reload();

http://lada.wald.intevation.org