From: John Firebaugh Date: Wed, 2 Oct 2013 21:16:42 +0000 (-0700) Subject: Don't disable History button X-Git-Tag: live~4625^2~235 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/3ba036045bc43031475eb29ca0663d33c80e1b32 Don't disable History button --- diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 2b8bc5d26..9804e3237 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -105,15 +105,6 @@ function updatelinks(loc, zoom, layers, bounds, object) { .toggleClass('disabled', editDisabled) .attr('data-original-title', editDisabled ? I18n.t('javascripts.site.edit_disabled_tooltip') : ''); - - var historyDisabled = zoom < 11; - $('#history_tab') - .tooltip({placement: 'bottom'}) - .off('click.minzoom') - .on('click.minzoom', function() { return !historyDisabled; }) - .toggleClass('disabled', historyDisabled) - .attr('data-original-title', historyDisabled ? - I18n.t('javascripts.site.history_disabled_tooltip') : ''); } // generate a cookie-safe string of map state diff --git a/config/locales/en.yml b/config/locales/en.yml index 01139aa4d..0f8dc7620 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2171,8 +2171,6 @@ en: site: edit_tooltip: Edit the map edit_disabled_tooltip: Zoom in to edit the map - history_tooltip: View edits for this area - history_disabled_tooltip: Zoom in to view edits for this area createnote_tooltip: Add a note to the map createnote_disabled_tooltip: Zoom in to add a note to the map notes: