Mercurial > lada > lada-client
view app/controller/Map.js @ 740:2e8da590ea0c
made Comboboces editable and filterable for; Messungenform: Messstelle,Datenbasis,Betriebsarts,Testdatensatz,Preobenart,Netzbetreiber Messungform: Messmethode Messwertegrid: Messgroesse,Messeinheit
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Mon, 20 Apr 2015 16:07:40 +0200 |
parents | d21048cbdbb3 |
children | 6e28ebbe1a73 |
line wrap: on
line source
/* Copyright (C) 2013 by Bundesamt fuer Strahlenschutz * Software engineering by Intevation GmbH * * This file is Free Software under the GNU GPL (v>=3) * and comes with ABSOLUTELY NO WARRANTY! Check out * the documentation coming with IMIS-Labordaten-Application for details. */ /** */ Ext.define('Lada.controller.Map', { extend: 'Ext.app.Controller', requires: [ ], init: function() { this.control({ 'maptoolbar button[action=add]': { click: this.addLocation } }); this.callParent(arguments); }, addLocation: function(button) { var mapPanel = button.up('map'); var details = button.up('window').down('locationform'); var newLocation = Ext.create('Lada.model.Location'); details.setRecord(newLocation); details.setReadOnly(false); mapPanel.activateDraw(newLocation); } });