]> git.openstreetmap.org Git - rails.git/commitdiff
Don't disable History button
authorJohn Firebaugh <john.firebaugh@gmail.com>
Wed, 2 Oct 2013 21:16:42 +0000 (14:16 -0700)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Sun, 13 Oct 2013 21:46:07 +0000 (14:46 -0700)
app/assets/javascripts/application.js
config/locales/en.yml

index 2b8bc5d26cb0d1ddf12db5ce5849eeaed11e1832..9804e323719aea370147262fcba8dd720fb90a32 100644 (file)
@@ -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
index 01139aa4dd0ea35881fb4bcfa5cd19a1b771d20f..0f8dc7620b238aee226c073ccb9cf72b7234cd49 100644 (file)
@@ -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: