diff app/view/form/Messung.js @ 955:b401846e7817

using callback differently for statuswerte
author Dustin Demuth <dustin@intevation.de>
date Mon, 09 Nov 2015 12:53:36 +0100
parents c7bf0b459074
children 881984972e0e
line wrap: on
line diff
--- a/app/view/form/Messung.js	Wed Nov 04 19:44:44 2015 +0100
+++ b/app/view/form/Messung.js	Mon Nov 09 12:53:36 2015 +0100
@@ -176,8 +176,9 @@
         if (!swStore) {
             var swStore = Ext.create('Lada.store.StatusWerte');
         }
-        swStore.on('load',
-            function(records, operation, success) {
+        swStore.load({
+            scope: this,
+            callback: function(records, operation, success) {
                 var i18n = Lada.getApplication().bundle;
                 var msg = i18n.getMsg('load.statuswert.error');
                 var textfield = this.down('[name=status]');
@@ -186,8 +187,7 @@
                 }
                 textfield.setRawValue(msg);
             },
-            this);
-        swStore.load();
+        });
     },
 
     setMessages: function(errors, warnings) {

http://lada.wald.intevation.org