dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #36045
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18458: GIS mouse event issue fixed.
Merge authors:
Jan Henrik Øverland (janhenrik-overland)
------------------------------------------------------------
revno: 18458 [merge]
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Mon 2015-03-02 18:07:10 +0100
message:
GIS mouse event issue fixed.
modified:
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/app.js
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/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-apps/src/main/webapp/dhis-web-mapping/scripts/app.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/app.js 2015-02-24 15:35:20 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/app.js 2015-03-02 17:05:55 +0000
@@ -9715,4 +9715,3 @@
});
}();
});
-
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/core.js'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/core.js 2015-02-25 14:51:26 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/core.js 2015-03-02 17:05:55 +0000
@@ -224,13 +224,17 @@
layer.registerMouseDownEvent = function() {
// clear mousedown listeners
- if (layer.events && layer.events.listeners && Ext.isArray(layer.events.listeners.mousedown)) {
- layer.events.listeners.mousedown = [];
- }
+ //if (layer.events && layer.events.listeners && Ext.isArray(layer.events.listeners.mousedown)) {
+ //layer.events.listeners.mousedown = [];
+ //}
layer.events.register('mousedown', null, layer.onMouseDown);
};
+ layer.unregisterMouseDownEvent = function() {
+ layer.events.unregister('mousedown', null, layer.onMouseDown);
+ };
+
defaultHoverSelect = function fn(feature) {
if (isBoundary) {
var style = layer.core.getDefaultFeatureStyle();
@@ -274,6 +278,12 @@
defaultHoverUnselect = function fn(feature) {
defaultHoverWindow.destroy();
+
+ // remove mouse click event
+ if (layer.events && layer.events.listeners && Ext.isArray(layer.events.listeners.mousedown)) {
+ layer.events.listeners.mousedown = [];
+ }
+ //layer.unregisterMouseDownEvent();
};
defaultLeftClickSelect = function fn(feature, e) {