changeset 125:324b11db4323

Store probeId as attribute of the "add" button in the zusatzwerte list.
author Torsten Irländer <torsten.irlaender@intevation.de>
date Tue, 25 Jun 2013 11:06:43 +0200
parents 1907f405eb93
children 3d8cbc2d0dc1
files app/view/proben/EditForm.js app/view/zusatzwerte/List.js
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/app/view/proben/EditForm.js	Tue Jun 25 09:35:40 2013 +0200
+++ b/app/view/proben/EditForm.js	Tue Jun 25 11:06:43 2013 +0200
@@ -165,7 +165,10 @@
                 collapsed: true,
                 padding: '10 10',
                 items: [
-                    { xtype: 'zusatzwertelist' }
+                    {
+                        xtype: 'zusatzwertelist',
+                        probeId: this.modelId
+                    }
                 ]
             }
             //// Probenkommentar
--- a/app/view/zusatzwerte/List.js	Tue Jun 25 09:35:40 2013 +0200
+++ b/app/view/zusatzwerte/List.js	Tue Jun 25 11:06:43 2013 +0200
@@ -10,6 +10,7 @@
         minHeight: 35,
         deferEmptyText: false
     },
+    probeId: null,
     initComponent: function() {
         this.dockedItems = [
             {
@@ -19,7 +20,8 @@
                     {
                         text: 'Hinzufügen',
                         icon: 'gfx/plus.gif',
-                        action: 'add'
+                        action: 'add',
+                        probeId: this.probeId
                     },
                     {
                         text: 'Löschen',

http://lada.wald.intevation.org