[Lada-commits] [PATCH 1 of 2] Code style

Wald Commits scm-commit at wald.intevation.org
Thu Dec 11 18:56:30 CET 2014


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1418320409 -3600
# Node ID 484e12e89d54037a05d6e1e89c635f7a82e19e91
# Parent  10959fe61092f3df8367db45ab8eeb93bd483597
Code style.

diff -r 10959fe61092 -r 484e12e89d54 app/view/messungen/List.js
--- a/app/view/messungen/List.js	Thu Nov 06 17:22:27 2014 +0100
+++ b/app/view/messungen/List.js	Thu Dec 11 18:53:29 2014 +0100
@@ -3,13 +3,13 @@
  *
  * This file is Free Software under the GNU GPL (v>=3)
  * and comes with ABSOLUTELY NO WARRANTY! Check out
- * the documentation coming with IMIS-Labordaten-Application for details. 
+ * the documentation coming with IMIS-Labordaten-Application for details.
  */
 
 /*
  * Grid to list Messungen
  */
-Ext.define('Lada.view.messungen.List' ,{
+Ext.define('Lada.view.messungen.List', {
     extend: 'Ext.grid.Panel',
     alias: 'widget.messungenlist',
 
@@ -42,22 +42,23 @@
         }];
         this.columns = [{
             header: 'Mess.ID',
-            dataIndex: "id",
+            dataIndex: 'id',
             width: 50
         }, {
             header: 'NPR-Nr.',
-            dataIndex: "nebenprobenNr",
+            dataIndex: 'nebenprobenNr',
             width: 50
         }, {
             header: 'MMT',
-            dataIndex: "mmtId",
+            dataIndex: 'mmtId',
             width: 50
         }, {
             header: 'Messzeit',
-            dataIndex: "messzeitpunkt"
+            dataIndex: 'messzeitpunkt'
         }, {
             header: 'Status',
             dataIndex: 'id',
+            width: 50,
             renderer: function(value) {
                 var sstore = Ext.getStore('Status');
                 sstore.load({
@@ -67,20 +68,19 @@
                     }
                 });
                 if (sstore.getTotalCount() === 0) {
-                    return "unbekannt";
-                } else {
-                    return sstore.last().get('status');
+                    return 'unbekannt';
                 }
+                return sstore.last().get('status');
             }
         }, {
             header: 'OK-Flag',
-            dataIndex: "fertig",
+            dataIndex: 'fertig',
+            width: 50,
             renderer: function(value) {
                 if (value) {
-                    return "Ja";
-                } else {
-                    return "Nein";
+                    return 'Ja';
                 }
+                return 'Nein';
             }
          }, {
             header: 'Anzahl Nuklide',
@@ -113,4 +113,3 @@
         this.callParent(arguments);
     }
 });
-


More information about the Lada-commits mailing list