Mercurial > lada > lada-client
comparison app/controller/form/Ortszuordnung.js @ 1293:16a80ca16732
map feature visibility, selection and grid layout
messpunkt layer is now visible per default when in editing mode
on selection in map, the form is updated
ortszuordnung buttons should not render over grid anymore
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Wed, 01 Feb 2017 19:38:06 +0100 |
parents | e9f812528324 |
children | 171eacf989d8 |
comparison
equal
deleted
inserted
replaced
1292:317ae6bfd647 | 1293:16a80ca16732 |
---|---|
121 var win = button.up('window'); | 121 var win = button.up('window'); |
122 var gridPanel = win.down('panel[name=ortgrid]'); | 122 var gridPanel = win.down('panel[name=ortgrid]'); |
123 var osg = win.down('ortstammdatengrid'); | 123 var osg = win.down('ortstammdatengrid'); |
124 var oForm = button.up('form'); | 124 var oForm = button.up('form'); |
125 osg.addListener('select',oForm.setOrt, oForm); | 125 osg.addListener('select',oForm.setOrt, oForm); |
126 var map = win.down('map'); | |
126 if (pressed) { | 127 if (pressed) { |
127 win.setHeight(Ext.getBody().getViewSize().height - 50); | 128 win.setHeight(Ext.getBody().getViewSize().height - 50); |
128 button.setText(i18n.getMsg('ortszuordnung.form.setOrt.pressed')); | 129 button.setText(i18n.getMsg('ortszuordnung.form.setOrt.pressed')); |
130 map.featureLayer.setVisibility(true); | |
129 win.setY(25); | 131 win.setY(25); |
130 gridPanel.show(); | 132 gridPanel.show(); |
133 win.doLayout(); | |
131 osg.addListener('select',oForm.setOrt, oForm); | 134 osg.addListener('select',oForm.setOrt, oForm); |
132 | 135 |
133 } | 136 } |
134 else { | 137 else { |
135 var y = (Ext.getBody().getViewSize().height - 465) / 2 | 138 map.featureLayer.setVisibility(false); |
139 var y = (Ext.getBody().getViewSize().height - 465) / 2; | |
136 win.setHeight(465); | 140 win.setHeight(465); |
137 win.setY(y); | 141 win.setY(y); |
138 button.setText(i18n.getMsg('ortszuordnung.form.setOrt')); | 142 button.setText(i18n.getMsg('ortszuordnung.form.setOrt')); |
139 gridPanel.hide(); | 143 gridPanel.hide(); |
140 osg.removeListener('select',oForm.setOrt, oForm); | 144 osg.removeListener('select',oForm.setOrt, oForm); |
145 oForm.doLayout(); | |
141 } | 146 } |
142 }, | 147 }, |
143 | 148 |
144 /** | 149 /** |
145 * The validitychange function enables or disables the save button which | 150 * The validitychange function enables or disables the save button which |