comparison gnv/src/main/webapp/scripts/viewport.jsp @ 1016:3665834344a8

Issue317: Provide a Comboboy with given WMS instead of an Textfield gnv/trunk@1244 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 29 Jun 2010 15:41:10 +0000
parents e2c4e9886dc3
children cce6596560e6
comparison
equal deleted inserted replaced
1015:c83eeebdf521 1016:3665834344a8
144 split: false, 144 split: false,
145 height: 400, 145 height: 400,
146 contentEl: 'cap' 146 contentEl: 'cap'
147 147
148 }); 148 });
149 149
150 var capfield = new Ext.form.TextField({ 150 var capstore = new Ext.data.SimpleStore({
151 fields: ['name','url'],
152 data : [['<bean:message key="gnviewer.mapclient.wms.local.service.name"/>','<%=mapService.getURL()%>'],<jsp:include page="/WEB-INF/config/reachable-servers.conf" />]
153 });
154 capfield = new Ext.form.ComboBox({
151 id: 'capfield', 155 id: 'capfield',
152 region: 'east', 156 store: capstore,
153 width: '100%', 157 displayField:'name',
154 renderTo: 'urlinput' 158 width: 245,
155 }); 159 valueField: 'url',
160 mode: 'local',
161 triggerAction: 'all',
162 selectOnFocus: true,
163 renderTo: 'urlinput',
164 editable: false,
165 value: '<%=mapService.getURL()%>'
166
167 });
168
169
156 170
157 var capbutton = new Ext.Button({ 171 var capbutton = new Ext.Button({
158 id: 'capbutton', 172 id: 'capbutton',
159 region: 'west', 173 region: 'west',
160 handler: updateCapabilities, 174 handler: updateCapabilities,

http://dive4elements.wald.intevation.org