From 42cb002c5f92b5739270194a9a12ad88d46418fc Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 10 May 2013 11:01:06 +0200 Subject: [PATCH] fix map 'report map error' css --- source/Ox.UI/js/Map/Map.js | 56 +++++++++++++++++++++++++------------- 1 file changed, 37 insertions(+), 19 deletions(-) diff --git a/source/Ox.UI/js/Map/Map.js b/source/Ox.UI/js/Map/Map.js index 849e3b63..da145bec 100644 --- a/source/Ox.UI/js/Map/Map.js +++ b/source/Ox.UI/js/Map/Map.js @@ -663,6 +663,43 @@ Ox.Map = function(options, self) { return place && place.editing; } + function formatTerms() { + var $element; + setTimeout(function() { + try { + // Terms of Use + $element = $(self.$map.find('a[href$="terms_maps.html"]').parent()); + $element.css({ + color: 'rgb(192, 192, 192)', + textShadow: '1px 1px 0 rgb(64, 64, 64)' + }); + ['moz', 'o', 'webkit'].forEach(function(browser) { + $element.css({ + backgroundImage: '-' + browser + + '-linear-gradient(left, rgba(255, 255, 255, 0) 0px, rgba(255, 255, 255, 0.1) 50px)' + }); + }); + $element.children().css({ + color: 'rgb(192, 192, 192)' + }); + // Report Map Error + $element = $(self.$map.find('a[href$="$apiref:1"]').parent()) + $element.css({ + borderColor: 'transparent', + backgroundColor: 'rgba(255, 255, 255, 0.1)', + color: 'rgb(192, 192, 192)', + textShadow: '1px 1px 0 rgb(64, 64, 64)' + }); + $element.children().css({ + color: 'rgb(192, 192, 192)', + fontSize: '10px', + fontWeight: 'normal', + textDecoration: 'underline' + }); + } catch (e) {} + }); + } + function getElevation(point, callback) { // fixme: unused if (arguments.length == 1) { @@ -914,25 +951,6 @@ Ox.Map = function(options, self) { && southWest.lng() == northEast.lng(); } - function formatTerms() { - setTimeout(function() { - var $element; - try { - $element = $(self.$map.find('a[href$="terms_maps.html"]').parent()).css({ - color: 'rgb(192, 192, 192)', - textShadow: '1px 1px 0 rgb(64, 64, 64)' - }); - ['moz', 'o', 'webkit'].forEach(function(browser) { - $element.css({ - backgroundImage: '-' + browser - + '-linear-gradient(left, rgba(255, 255, 255, 0) 0px, rgba(255, 255, 255, 0.1) 50px)' - }); - }); - $element.children().css({color: 'rgb(192, 192, 192)'}); - } catch (e) {} - }, 0); - } - function mapChanged() { // This is the handler that actually adds the places to the map. // Gets called after panning or zooming, and when the map is idle.