Module: nagvis Branch: master Commit: 6e1930272f9cb45ee6bbc9d640f3742597eb7a84 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=6e1930272f9cb45ee6bbc9d640f3742597eb7a84
Author: Andriy Skuratov <[email protected]> Date: Tue Aug 25 11:48:00 2009 +0300 gmap:Do not do geocoding for empty address. --- uifx/src/modules/gmap/view/DialogSearch.mxml | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/uifx/src/modules/gmap/view/DialogSearch.mxml b/uifx/src/modules/gmap/view/DialogSearch.mxml index 7293070..5feac66 100644 --- a/uifx/src/modules/gmap/view/DialogSearch.mxml +++ b/uifx/src/modules/gmap/view/DialogSearch.mxml @@ -26,6 +26,12 @@ <mx:Script> <![CDATA[ import modules.gmap.events.AddressEvent; + + public function onLocateClicked():void + { + if(address.text.length > 0) + dispatchEvent(new AddressEvent(AddressEvent.LOCATE, address.text)) + } ]]> </mx:Script> <mx:HBox left="10" right="15" top="10" height="20"> @@ -44,7 +50,7 @@ /> <mx:Button label="Locate" right="0" bottom="0" height="22" - click="dispatchEvent(new AddressEvent(AddressEvent.LOCATE, address.text))" + click="onLocateClicked()" /> </mx:Canvas> </EdgeBox> ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
