summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2014-01-24 09:23:24 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2014-01-24 09:23:24 (GMT)
commit1ef1a420db803cbe65fb2f3d42fb23754d307933 (patch)
treeb5ef95c4df4efbde4f6b713609d8af59565ae7a9
parent059a2376581c541f8cf3f4cee3058b4e01324fb2 (diff)
downloadunivnautes-old-1ef1a420db803cbe65fb2f3d42fb23754d307933.zip
univnautes-old-1ef1a420db803cbe65fb2f3d42fb23754d307933.tar.gz
univnautes-old-1ef1a420db803cbe65fb2f3d42fb23754d307933.tar.bz2
univnautes.js: IE9+ fixes (fix #4250)
-rw-r--r--virtualenv/pffedportal/base/static/univnautes/js/univnautes.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/virtualenv/pffedportal/base/static/univnautes/js/univnautes.js b/virtualenv/pffedportal/base/static/univnautes/js/univnautes.js
index 8a57782..621dab9 100644
--- a/virtualenv/pffedportal/base/static/univnautes/js/univnautes.js
+++ b/virtualenv/pffedportal/base/static/univnautes/js/univnautes.js
@@ -63,29 +63,29 @@ function refreshmarkers() {
var searchValue = $('input#search').val().toLowerCase();
var new_markers = new Array();
for ( var i = listItems.length - 1; i >= 0; i-- ) {
- item = $(listItems[i]);
- idp = item.children('a');
- text = idp.data('filtertext');
- eid = idp.data('entityid');
- lat = idp.data('lat');
- lon = idp.data('lon');
- latlon = new L.LatLng(lat, lon);
+ var itemIdp = $(listItems[i]);
+ var idp = itemIdp.children('a');
+ var text = idp.data('filtertext');
+ var eid = idp.data('entityid');
+ var lat = idp.data('lat');
+ var lon = idp.data('lon');
+ var latlon = new L.LatLng(lat, lon);
if (searchValue.length > 2) {
if (text.toLowerCase().indexOf(searchValue) < 0) {
// filtered by input#search : hide it and don't add to markers
- item.hide();
- item.addClass('hidden');
+ itemIdp.hide();
+ itemIdp.addClass('hidden');
continue;
}
} else if (! map.getBounds().contains(latlon)) {
// marker is not on the map, hide it and don't add to markers
- item.hide();
- item.addClass('hidden');
+ itemIdp.hide();
+ itemIdp.addClass('hidden');
continue;
}
- item.show();
- item.removeClass('hidden');
- marker = new L.Marker(latlon, { title: text,
+ itemIdp.show();
+ itemIdp.removeClass('hidden');
+ var marker = new L.Marker(latlon, { title: text,
icon: new L.DivIcon({
html: '<div><span></span></div>',
className: 'marker-cluster marker-cluster-one',