Skip to content

Commit

Permalink
Field flow: Remove HTML tags from optgroup labels
Browse files Browse the repository at this point in the history
Also adds a strong element to the grouping example to demonstrate it in action.

Overlooked leftover from wet-boew#2291.
  • Loading branch information
EricDunsworth committed Mar 6, 2024
1 parent caf7323 commit 5a8aa1c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions components/wb-fieldflow/fieldflow-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
tag: fieldflow
parentdir: fieldflow
altLangPage: fieldflow-fr.html
dateModified: 2023-12-01
dateModified: 2024-03-06
---
<ul class="list-inline">
<li><a class="btn btn-primary" href="fieldflow-doc-en.html">Documentation</a></li>
Expand Down Expand Up @@ -114,7 +114,7 @@ <h2 id="grouping">Grouping</h2>
<div class="wb-fieldflow">
<p>Find the plugin for the action you need.</p>
<ul>
<li>Layout and rendering
<li>Layout <strong>and</strong> rendering
<ul>
<li><a href="https://wet-boew.github.io/v4.0-ci/demos/data-ajax/data-ajax-en.html">Inserting content</a></li>
<li><a href="https://wet-boew.github.io/v4.0-ci/demos/charts/charts-en.html">Draw charts</a></li>
Expand All @@ -135,7 +135,7 @@ <h2 id="grouping">Grouping</h2>
<pre><code>&lt;div class=&quot;wb-fieldflow&quot;&gt;
&lt;p&gt;Find the plugin for the action you need.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Layout and rendering
&lt;li&gt;Layout &lt;strong&gt;and&lt;/strong&gt; rendering
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://wet-boew.github.io/v4.0-ci/demos/data-ajax/data-ajax-en.html&quot;&gt;Inserting content&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://wet-boew.github.io/v4.0-ci/demos/charts/charts-en.html&quot;&gt;Draw charts&lt;/a&gt;&lt;/li&gt;
Expand Down Expand Up @@ -163,7 +163,7 @@ <h2 id="nesting">Nesting <small>Adding subsequent control</small></h2>
<div class="wb-fieldflow">
<p>Find the plugin for the action you need.</p>
<ul>
<li>+ Layout and rendering
<li>+ Layout <strong>and</strong> rendering
<div class="wb-fieldflow-sub">
<p>It is for?..</p>
<ul>
Expand Down Expand Up @@ -196,7 +196,7 @@ <h2 id="nesting">Nesting <small>Adding subsequent control</small></h2>
<pre><code>&lt;div class=&quot;wb-fieldflow&quot;&gt;
&lt;p&gt;Find the plugin for the action you need.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;+ Layout and rendering
&lt;li&gt;+ Layout &lt;strong&gt;and&lt;/strong&gt; rendering
<strong>&lt;div class=&quot;wb-fieldflow-sub&quot;&gt;</strong>
&lt;p&gt;It is for?..&lt;/p&gt;
&lt;ul&gt;
Expand Down
10 changes: 5 additions & 5 deletions components/wb-fieldflow/fieldflow-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
tag: "fieldflow"
parentdir: "fieldflow"
altLangPage: fieldflow-en.html
dateModified: "2023-12-01"
dateModified: "2024-03-06"
---
<ul class="list-inline">
<li><a class="btn btn-primary" href="fieldflow-doc-fr.html">Documentation</a></li>
Expand Down Expand Up @@ -113,7 +113,7 @@ <h2 id="regroupement">Regroupement</h2>
<p>Trouvez le plugiciel qui répond à vos besoin:</p>

<ul>
<li>Mise en page et présentation
<li>Mise en page <strong>et</strong> présentation
<ul>
<li><a href="https://wet-boew.github.io/v4.0-ci/demos/data-ajax/data-ajax-fr.html">Insertion de contenu</a></li>
<li><a href="https://wet-boew.github.io/v4.0-ci/demos/charts/charts-fr.html">Dessiner des graphiques</a></li>
Expand All @@ -135,7 +135,7 @@ <h2 id="regroupement">Regroupement</h2>
&lt;p&gt;Trouvez le plugiciel qui répond à vos besoin:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Mise en page et présentation
&lt;li&gt;Mise en page &lt;strong&gt;et&lt;/strong&gt; présentation
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://wet-boew.github.io/v4.0-ci/demos/data-ajax/data-ajax-fr.html&quot;&gt;Insertion de contenu&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://wet-boew.github.io/v4.0-ci/demos/charts/charts-fr.html&quot;&gt;Dessiner des graphiques&lt;/a&gt;&lt;/li&gt;
Expand Down Expand Up @@ -163,7 +163,7 @@ <h2 id="imbrication">Imbrication <small>Ajout d'un contrôle subséquant</small>
<div class="wb-fieldflow">
<p>Trouvez le plugiciel qui répond à vos besoin:</p>
<ul>
<li>+ Mise en page et présentation
<li>+ Mise en page <strong>et</strong> présentation
<div class="wb-fieldflow-sub">
<p>Et c'est pour?</p>
<ul>
Expand Down Expand Up @@ -197,7 +197,7 @@ <h2 id="imbrication">Imbrication <small>Ajout d'un contrôle subséquant</small>
<pre><code>&lt;div class=&quot;wb-fieldflow&quot;&gt;
&lt;p&gt;Trouvez le plugiciel qui répond à vos besoin:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;+ Mise en page et présentation
&lt;li&gt;+ Mise en page &lt;strong&gt;et&lt;/strong&gt; présentation
<strong>&lt;div class=&quot;wb-fieldflow-sub&quot;&gt;</strong>
&lt;p&gt;Et c'est pour?&lt;/p&gt;
&lt;ul&gt;
Expand Down
2 changes: 1 addition & 1 deletion components/wb-fieldflow/fieldflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ var componentName = "wb-fieldflow",
} else {

// We have a group of sub-items, the cur_itm are a group
selectOut += "<optgroup label='" + cur_itm.label + "'>";
selectOut += "<optgroup label='" + stripHtml( cur_itm.label ) + "'>";
j_len = cur_itm.group.length;
for ( j = 0; j !== j_len; j += 1 ) {
selectOut += buildSelectOption( cur_itm.group[ j ] );
Expand Down

0 comments on commit 5a8aa1c

Please sign in to comment.