dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #22979
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 11173: (GIS) Relocate bug fixed.
------------------------------------------------------------
revno: 11173
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Sat 2013-06-08 06:23:53 +0200
message:
(GIS) Relocate bug fixed.
modified:
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/core.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js 2013-06-05 09:38:42 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js 2013-06-08 04:23:53 +0000
@@ -5209,7 +5209,7 @@
gis.olmap.events.register('click', null, function(e) {
if (gis.olmap.relocate.active) {
- var el = document.getElementById('mouseposition').childNodes[0],
+ var el = Ext.query('#mouseposition')[0],
coordinates = '[' + el.childNodes[1].data + ',' + el.childNodes[3].data + ']',
center = gis.viewport.centerRegion;
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/core.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/core.js 2013-05-30 09:23:07 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/core.js 2013-06-08 04:23:53 +0000
@@ -259,7 +259,7 @@
documentDrag: true
}),
new OpenLayers.Control.MousePosition({
- prefix: '<span class="el-fontsize-10"><span class="text-mouseposition-lonlat">LON </span>',
+ prefix: '<span id="mouseposition" class="el-fontsize-10"><span class="text-mouseposition-lonlat">LON </span>',
separator: '<span class="text-mouseposition-lonlat"> LAT </span>',
suffix: '<div id="google-logo" name="http://www.google.com/intl/en-US_US/help/terms_maps.html" onclick="window.open(Ext.get(this).dom.attributes.name.nodeValue);"></div></span>'
}),