From 691156caec7b7784cc11bbd6a21e3119d7898595 Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Tue, 2 Apr 2013 14:19:02 -0400 Subject: [PATCH] fix flash style --- css/app.css | 11 ----------- data/core.yaml | 1 + data/locales.js | 1 + js/id/renderer/map.js | 2 +- 4 files changed, 3 insertions(+), 12 deletions(-) diff --git a/css/app.css b/css/app.css index a8066927a..13df2863f 100644 --- a/css/app.css +++ b/css/app.css @@ -1891,17 +1891,6 @@ img.wiki-image { border-bottom: 0; } -.modal-flash .content { - box-shadow: none; - border-radius: 4px; - background: #111; - color: #eee; -} - -.modal-flash .close-modal { - display:none; -} - .loading-modal { text-align: center; } diff --git a/data/core.yaml b/data/core.yaml index 6e3978c7e..d5fdb8ea8 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -202,6 +202,7 @@ en: zoom: in: Zoom In out: Zoom Out + cannot_zoom: "Cannot zoom out further in current mode." gpx: local_layer: "Local GPX file" drag_drop: "Drag and drop a .gpx file on the page" diff --git a/data/locales.js b/data/locales.js index 6ee7a2989..c7de27b73 100644 --- a/data/locales.js +++ b/data/locales.js @@ -249,6 +249,7 @@ locale.en = { "in": "Zoom In", "out": "Zoom Out" }, + "cannot_zoom": "Cannot zoom out further in current mode.", "gpx": { "local_layer": "Local GPX file", "drag_drop": "Drag and drop a .gpx file on the page" diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index 6f20619ab..03547dc76 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -127,7 +127,7 @@ iD.Map = function(context) { if (Math.log(d3.event.scale / Math.LN2 - 8) < minzoom + 1) { iD.ui.flash(context.container()) .select('.content') - .text('Cannot zoom out further in current mode.'); + .text(t('cannot_zoom')); return setZoom(16, true); }