From ce3ab9903a4fe9a2debeaf6c85afc45fcfcbb353 Mon Sep 17 00:00:00 2001 From: Bashar Jabbour Date: Sat, 29 Nov 2014 15:56:38 -0500 Subject: [PATCH] make map contributor list dropdown into links to profiles --- app/assets/javascripts/src/Metamaps.js | 8 +++++--- app/assets/stylesheets/application.css | 3 +++ app/views/maps/_mapinfobox.html.erb | 4 ++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/src/Metamaps.js b/app/assets/javascripts/src/Metamaps.js index 5bce8987..6acdb68c 100644 --- a/app/assets/javascripts/src/Metamaps.js +++ b/app/assets/javascripts/src/Metamaps.js @@ -4781,6 +4781,8 @@ Metamaps.Map.InfoBox = { $('.mapContributors .tip').unbind().click(function(event){ event.stopPropagation(); }); + $('.mapContributors .tip li a').click(Metamaps.Router.intercept); + $('.mapInfoBox').unbind('.hideTip').bind('click.hideTip', function(){ $('.mapContributors .tip').hide(); }); @@ -4794,15 +4796,15 @@ Metamaps.Map.InfoBox = { var self = Metamaps.Map.InfoBox; var string = ""; - + console.log("hello!!") string += ""; - + console.log(string); return string; }, updateNumbers: function () { diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 14904971..f3b855fa 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -1708,6 +1708,9 @@ h3.realtimeBoxTitle { color: white; } +.mapContributors .tip li a { + color: white; +} .mapContributors div:after { content: ''; position: absolute; diff --git a/app/views/maps/_mapinfobox.html.erb b/app/views/maps/_mapinfobox.html.erb index c6b3b3c9..4305b3a7 100644 --- a/app/views/maps/_mapinfobox.html.erb +++ b/app/views/maps/_mapinfobox.html.erb @@ -23,8 +23,8 @@ <% end %> <%= @map.contributors.count %>