made map contributors toggle visibility on click

This commit is contained in:
Connor Turland 2014-11-20 22:50:47 -05:00
parent a20f6b760f
commit e9a39f9838
2 changed files with 14 additions and 4 deletions

View file

@ -4548,6 +4548,7 @@ Metamaps.Map.InfoBox = {
self.changing = false; self.changing = false;
self.isOpen = false; self.isOpen = false;
self.hidePermissionSelect(); self.hidePermissionSelect();
$('.mapContributors .tip').hide();
}); });
} }
}, },
@ -4622,6 +4623,17 @@ Metamaps.Map.InfoBox = {
$('.mapInfoBox.yourMap').unbind('.yourMap').bind('click.yourMap', self.hidePermissionSelect); $('.mapInfoBox.yourMap').unbind('.yourMap').bind('click.yourMap', self.hidePermissionSelect);
$('.yourMap .mapInfoDelete').unbind().click(self.deleteActiveMap); $('.yourMap .mapInfoDelete').unbind().click(self.deleteActiveMap);
$('.mapContributors span, #mapContribs').unbind().click(function(event){
$('.mapContributors .tip').toggle();
event.stopPropagation();
});
$('.mapContributors .tip').unbind().click(function(event){
event.stopPropagation();
});
$('.mapInfoBox').unbind('.hideTip').bind('click.hideTip', function(){
$('.mapContributors .tip').hide();
});
}, },
updateNameDescPerm: function(name, desc, perm) { updateNameDescPerm: function(name, desc, perm) {
$('.mapInfoName .best_in_place_name').html(name); $('.mapInfoName .best_in_place_name').html(name);

View file

@ -1622,6 +1622,7 @@ float: left;
width: 25px; width: 25px;
height: 25px; height: 25px;
border-radius: 15px; border-radius: 15px;
cursor: pointer;
} }
#mapContribs.multiple.mTwo { #mapContribs.multiple.mTwo {
box-shadow: 1px 1px 0 0 #B5B5B5,3px 2px 0 0 #424242; box-shadow: 1px 1px 0 0 #B5B5B5,3px 2px 0 0 #424242;
@ -1634,6 +1635,7 @@ float: left;
padding-top: 5px; padding-top: 5px;
padding-left: 8px; padding-left: 8px;
float: left; float: left;
cursor: pointer;
} }
@ -1706,10 +1708,6 @@ float: left;
border-radius: 14px; border-radius: 14px;
} }
.mapInfoBox .hoverForTip:hover .tip {
display: block;
}
.mapInfoBox .mapPermission .tooltips { .mapInfoBox .mapPermission .tooltips {
top: -20px; top: -20px;
right: 36px; right: 36px;