[Pkg-javascript-commits] [leaflet] 264/301: Issue #2199 - Set focus to popup close button when popup is opened.

Jonas Smedegaard js at moszumanska.debian.org
Mon Jan 27 22:22:55 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 0b9918fe4ed4c0810e54e763fa277dd9f07164ca
Author: Adam Bramley <adam at catalyst.net.nz>
Date:   Wed Nov 20 16:09:14 2013 +1300

    Issue #2199 - Set focus to popup close button when popup is opened.
---
 src/layer/marker/Marker.Popup.js | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/layer/marker/Marker.Popup.js b/src/layer/marker/Marker.Popup.js
index e414d1b..885bba7 100644
--- a/src/layer/marker/Marker.Popup.js
+++ b/src/layer/marker/Marker.Popup.js
@@ -7,6 +7,7 @@ L.Marker.include({
 		if (this._popup && this._map && !this._map.hasLayer(this._popup)) {
 			this._popup.setLatLng(this._latlng);
 			this._map.openPopup(this._popup);
+			this._popup._closeButton.focus();
 		}
 
 		return this;

-- 
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