[fusion-trac] #231: Maptip.js \n replace problem in 1.1.1 and 2.0 beta
Fusion
trac_fusion at osgeo.org
Fri Mar 27 14:55:32 EDT 2009
#231: Maptip.js \n replace problem in 1.1.1 and 2.0 beta
------------------------+---------------------------------------------------
Reporter: amorsell | Owner: madair
Type: defect | Status: new
Priority: P2 | Milestone: Future
Component: Widgets | Version:
Severity: Minor | Keywords:
External_id: | State: New
Browser: All | Os: All
------------------------+---------------------------------------------------
In Maptip.js (at least in 2.0 beta, a similar line exists in 1.1.1), line
185
contentDiv.innerHTML = t.replace(/\n/g, "<br>");
Should read:
contentDiv.innerHTML = t.replace(/\\n/g, "<br>");
Otherwise the \n appears in the tooltips and the tooltip is one long
string in MapGuide Open Source.
--
Ticket URL: <http://trac.osgeo.org/fusion/ticket/231>
Fusion <http://trac.osgeo.org/fusion>
Fusion is a web-mapping application development framework for MapServer and MapGuide OS.
More information about the fusion-trac
mailing list