[Pkg-javascript-commits] [leaflet] 156/301: Hack fix for firefox android layers control. refs #2033

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:48 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit 7b101da036dc0c60fd81785ad49ba18f53f156e7
Author: danzel <danzel at localhost.geek.nz>
Date:   Wed Oct 30 09:04:20 2013 +1300

    Hack fix for firefox android layers control. refs #2033
---
 src/control/Control.Layers.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/control/Control.Layers.js b/src/control/Control.Layers.js
index c0bcf8e..11243d5 100644
--- a/src/control/Control.Layers.js
+++ b/src/control/Control.Layers.js
@@ -96,6 +96,14 @@ L.Control.Layers = L.Control.extend({
 			else {
 				L.DomEvent.on(link, 'focus', this._expand, this);
 			}
+			L.DomEvent.on(form, 'click', function () {
+				var that = this;
+				setTimeout(function () {
+					//alert('l');
+					
+					that._onInputClick();
+				}, 0);
+			}, this);
 
 			this._map.on('click', this._collapse, this);
 			// TODO keyboard accessibility

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list