smas1 / geoext-viewer

Automatically exported from code.google.com/p/geoext-viewer
GNU General Public License v3.0
0 stars 0 forks source link

CoordSearchPanel doesn't accept the 0 coordinate #390

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. go to this example : 
http://lib.heron-mc.org/heron/1.0.2/examples/coordsearch/index.html
2. Put the coordinate 0 0 in the CoordSearchPanel

What is the expected output? What do you see instead?

==> the button go should be enable but is still disable

On the CoordSearchPanel.js on the method onNumberKeyUp (line 774) :

if (valueX && valueY) {

should be replace with :

if (!isNaN(valueX)&&!isNaN(valueY))

to let the "0" being used

Original issue reported on code.google.com by louis.mu...@gmail.com on 18 Jun 2014 at 10:52

GoogleCodeExporter commented 9 years ago
Yep - I'll fix it.

Original comment by wolfram.winter on 19 Jun 2014 at 9:26

GoogleCodeExporter commented 9 years ago
Changed and tested - should be ok now - thanks Louis!

Original comment by wolfram.winter on 19 Jun 2014 at 9:40

GoogleCodeExporter commented 9 years ago
Verified: works as expected. Thanks W.

Original comment by jus...@gmail.com on 1 Jul 2014 at 2:32