make double-click on portal title in details panel close the panel

TODO: better interface (close button?), but at least there's *some* way of closing it now
This commit is contained in:
Jon Atkins 2013-04-05 18:06:40 +01:00
parent a2a9d3458d
commit 8b2472701a

View File

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