add a close button to the portal detail display - some people like to be able to hide it

show linked portals updated - the positioning needed changing
This commit is contained in:
Jon Atkins
2013-04-14 01:23:35 +01:00
parent 4ce09c737d
commit 326df3af26
3 changed files with 18 additions and 6 deletions

View File

@ -58,7 +58,8 @@ window.renderPortalDetails = function(guid) {
$('#portaldetails')
.attr('class', TEAM_TO_CSS[getTeam(d)])
.html(''
+ '<h3 ondblclick="renderPortalDetails(null);">'+d.portalV2.descriptiveText.TITLE+'</h3>'
+ '<h3 class="title">'+d.portalV2.descriptiveText.TITLE+'</h3>'
+ '<span class="close" onclick="unselectOldPortal();" title="Close">X</span>'
// help cursor via “.imgpreview img”
+ '<div class="imgpreview" '+imgTitle+' style="background-image: url('+img+')">'
+ '<img class="hide" src="'+img+'"/>'