Mercurial > lada > lada-client
diff app/controller/grid/Messung.js @ 963:6a6f2c6fe8ee
More work done on StatusWerte and Statusstufe. A Messung will also open when the owner attribute is true. Stauswerte and StatusStufen are loaded at application startup. Statusgrid and Messunggrid now use these stores, which were registered at the store manager.
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Thu, 12 Nov 2015 12:13:31 +0100 |
parents | 9b6800458a9e |
children | a73726bba79c |
line wrap: on
line diff
--- a/app/controller/grid/Messung.js Thu Nov 12 09:50:48 2015 +0100 +++ b/app/controller/grid/Messung.js Thu Nov 12 12:13:31 2015 +0100 @@ -43,12 +43,17 @@ /* Only open a new Window when: statusEdit = True -or- - the value of status is not 0 - the statusWert attribute is not present in the original data. - it is appended, when the value and name of the status were - determined. + the value of status is not 0 + -or- + the owner = True + + the statusWert attribute is not present in the original data. + it is appended, when the value and name of the status were + determined. */ - if (record.get('statusEdit') || record.get('statusWert') > 0) { + if (record.get('statusEdit') + || record.get('statusWert') > 0 + || record.get('owner')) { var win = Ext.create('Lada.view.window.MessungEdit', { parentWindow: grid.up('window'), probe: probe,