From 683bc37fa69d44df9d544d060125d17298f973e7 Mon Sep 17 00:00:00 2001 From: following Date: Mon, 4 Feb 2013 19:35:25 +0100 Subject: [PATCH] disable cache name linewrap in new map popups --- htdocs/templates2/ocstyle/map2.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/htdocs/templates2/ocstyle/map2.tpl b/htdocs/templates2/ocstyle/map2.tpl index bcd05a76..74f4a63a 100644 --- a/htdocs/templates2/ocstyle/map2.tpl +++ b/htdocs/templates2/ocstyle/map2.tpl @@ -712,7 +712,11 @@ function parseXML_GetHTML(xmlobject) sHtml += "  "; } - sHtml += "" + xmlentities(sTypeText) + " " + xmlentities(sName) + "" + xmlentities(sWPOC) + ""; + sHtml += ""; + if (sName.length <= 60) sHtml += ""; + sHtml += "" + xmlentities(sTypeText) + " " + xmlentities(sName) + ""; + if (sName.length <= 60) sHtml += ""; + sHtml += " " + xmlentities(sWPOC) + ""; sHtml += "{/literal}{t escape=js}by{/t}{literal} " + xmlentities(sUsername) + ""; sHtml += "" + xmlentities(sTypeText) + " (" + xmlentities(sSizeText) + ")   {t escape=js}D/T:{/t} " + parseFloat(nDifficulty).toFixed(1) + "/" + parseFloat(nTerrain).toFixed(1) + ""; sHtml += "{/literal}{t escape=js}Listed since:{/t}{literal} " + xmlentities(sListedSince) + "";