Avoid possible collision in tab anchor and field names

This commit is contained in:
Graham Triggs 2017-09-23 21:11:33 +01:00
parent 65291299b8
commit 613a512e8a

View file

@ -21,10 +21,10 @@
<#assign groupNameHtmlId = "${i18n().properties}" > <#assign groupNameHtmlId = "${i18n().properties}" >
</#if> </#if>
<#if tabCount = 1 > <#if tabCount = 1 >
<li data-toggle="tab" groupName="${groupNameHtmlId?replace("/","-")}" class="active" href="#${groupNameHtmlId?replace("/","-")}"><a href="#">${groupName?capitalize}</a></li> <li data-toggle="tab" groupName="${groupNameHtmlId?replace("/","-")}" class="active" href="#panel-${groupNameHtmlId?replace("/","-")}"><a href="#">${groupName?capitalize}</a></li>
<#assign tabCount = 2> <#assign tabCount = 2>
<#else> <#else>
<li data-toggle="tab" groupName="${groupNameHtmlId?replace("/","-")}" href="#${groupNameHtmlId?replace("/","-")}"><a href="#">${groupName?capitalize}</a></li> <li data-toggle="tab" groupName="${groupNameHtmlId?replace("/","-")}" href="#panel-${groupNameHtmlId?replace("/","-")}"><a href="#">${groupName?capitalize}</a></li>
</#if> </#if>
</#if> </#if>
</#list> </#list>
@ -42,7 +42,7 @@
<#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) > <#assign groupNameHtmlId = p.createPropertyGroupHtmlId(groupName) >
<#assign verbose = (verbosePropertySwitch.currentValue)!false> <#assign verbose = (verbosePropertySwitch.currentValue)!false>
<div id="${groupNameHtmlId?replace("/","-")}" <div id="panel-${groupNameHtmlId?replace("/","-")}"
class="tab-pane <#if (sectionCount == 1) >active</#if>" class="tab-pane <#if (sectionCount == 1) >active</#if>"
role="tabpanel"> role="tabpanel">
<#-- Display the group heading --> <#-- Display the group heading -->