Fix disabled overlay layers translations

This commit is contained in:
Aaron Lidman 2013-11-14 09:12:39 -08:00
parent 439ad373ec
commit fd8f35309d
2 changed files with 4 additions and 2 deletions

View file

@ -155,9 +155,9 @@ L.OSM.layers = function(options) {
map.on('zoomend', function() {
var disabled = map.getZoom() < minZoom + 1;
$(input).prop('disabled', disabled);
disabled ? $(item).attr('class', 'disabled') : $(item).attr('class', '');
$(item).attr('class', disabled ? 'disabled' : '');
item.attr('data-original-title', disabled ?
'Zoom in to see ' + name.toLowerCase() : '');
I18n.t('javascripts.site.' + refName + '_zoom_in_tooltip') : '');
});
}

View file

@ -2050,6 +2050,8 @@ en:
edit_disabled_tooltip: Zoom in to edit the map
createnote_tooltip: Add a note to the map
createnote_disabled_tooltip: Zoom in to add a note to the map
map_notes_zoom_in_tooltip: Zoom in to see map notes
map_data_zoom_in_tooltip: Zoom in to see map data
notes:
new:
intro: "In order to improve the map the information you enter is shown to other mappers, so please be as descriptive and precise as possible when moving the marker to the correct position and entering your note below."