# HG changeset patch # User Torsten Irländer # Date 1372151203 -7200 # Node ID 324b11db43230b51dd83b8d3d8f7435661dfddfd # Parent 1907f405eb934ddbc60924a97ac49bf3075a81fc Store probeId as attribute of the "add" button in the zusatzwerte list. diff -r 1907f405eb93 -r 324b11db4323 app/view/proben/EditForm.js --- 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 diff -r 1907f405eb93 -r 324b11db4323 app/view/zusatzwerte/List.js --- 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',