FCLT#54925 Ruimteomschrijving betere newline ondersteuning

svn path=/Website/branches/v2018.1/; revision=39354
This commit is contained in:
Jos Groot Lipman
2018-10-11 10:54:42 +00:00
parent ffe8af7811
commit fa30fba1c6
2 changed files with 2 additions and 2 deletions

View File

@@ -769,7 +769,7 @@ FCLTHeader.Requires({plugins: ["jQuery", "kenmerk"],
}
if (data.ruimte_omschrijving)
$('#resdescript').show().html(data.ruimte_omschrijving.replace(/\n/,"<br>"));
$('#resdescript').show().html(data.ruimte_omschrijving.replace(/\n/g,"<br>"));
else
$('#resdescript').hide();

View File

@@ -608,7 +608,7 @@ FCLTHeader.Requires({plugins: ["jQuery"]})
</tr><%
}
if (res_ruimte_data.ruimte_omschrijving) {
%><tr><td colspan="2" class="resroominfo"><div id="resdescript"><%=res_ruimte_data.ruimte_omschrijving.replace(/\n/,"<br>")%></div></td></tr><%
%><tr><td colspan="2" class="resroominfo"><div id="resdescript"><%=res_ruimte_data.ruimte_omschrijving.replace(/\n/g,"<br>")%></div></td></tr><%
}
if (res_ruimte_data.ruimte_info_url) {
%><tr><td><span class="details" readonly onclick="res_info('<%=safe.jsstring(res_ruimte_data.ruimte_info_url)%>')"><%=L("lcl_more_info")%></span></td></tr><%