Skip to content

Commit

Permalink
[TASK] Remove unneeded id for rangeselection
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Oct 30, 2024
1 parent 89ca81f commit d569c14
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Resources/Private/Build/JavaScript/Backend/Module.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@ const LuxBackend = function() {
}

const addRangeLabelListener = function() {
const elements = document.querySelectorAll('[data-lux-rangelabel]');
const elements = document.querySelectorAll('[data-lux-rangelabel="field"]');
elements.forEach(function(element) {
element.addEventListener('change', (event) => {
const label = event.target.parentNode.querySelector('#scoring_label');
const label = event.target.parentNode.querySelector('[data-lux-rangelabel="container"]');
label.innerHTML = event.target.value;
});
});
Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Partials/Filter/Analysis/Content.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ <h5>Scoring</h5>
type="range"
property="scoring"
class="form-control"
additionalAttributes="{min:0, max:200, data-lux-rangelabel:1}"
additionalAttributes="{min:0, max:200, data-lux-rangelabel:'field'}"
id="scoring"/>
<button type="button" class="btn btn-default" data-global-event="click" data-action-focus="#scoring">
Min: <strong id="scoring_label">{filter.scoring}</strong>
Min: <strong data-lux-rangelabel="container">{filter.scoring}</strong>
</button>
</div>

Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Partials/Filter/Analysis/News.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ <h5>Scoring</h5>
type="range"
property="scoring"
class="form-control"
additionalAttributes="{min:0, max:200, data-lux-rangelabel:1}"
additionalAttributes="{min:0, max:200, data-lux-rangelabel:'field'}"
id="scoring"/>
<button type="button" class="btn btn-default" data-global-event="click" data-action-focus="#scoring">
Min: <strong id="scoring_label">{filter.scoring}</strong>
Min: <strong data-lux-rangelabel="container">{filter.scoring}</strong>
</button>
</div>

Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Partials/Filter/Analysis/Search.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ <h5>Scoring</h5>
type="range"
property="scoring"
class="form-control"
additionalAttributes="{min:0, max:200, data-lux-rangelabel:1}"
additionalAttributes="{min:0, max:200, data-lux-rangelabel:'field'}"
id="scoring"/>
<button type="button" class="btn btn-default" data-global-event="click" data-action-focus="#scoring">
Min: <strong id="scoring_label">{filter.scoring}</strong>
Min: <strong data-lux-rangelabel="container">{filter.scoring}</strong>
</button>
</div>

Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Partials/Filter/Lead/Companies.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ <h5>Scoring</h5>
type="range"
property="scoring"
class="form-control"
additionalAttributes="{min:0, max:200, data-lux-rangelabel:1}"
additionalAttributes="{min:0, max:200, data-lux-rangelabel:'field'}"
id="scoring"/>
<button type="button" class="btn btn-default" data-global-event="click" data-action-focus="#scoring">
Min: <strong id="scoring_label">{filter.scoring}</strong>
Min: <strong data-lux-rangelabel="container">{filter.scoring}</strong>
</button>
</div>

Expand Down
1 change: 1 addition & 0 deletions Resources/Private/Partials/Filter/Lead/Dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
<div class="col-md-2">
<div class="input-group">
<f:form.select
id="time"
class="form-control form-select"
property="timePeriod"
options="{lux:form.getOptionsArrayTimePeriodFilter()}"
Expand Down
4 changes: 2 additions & 2 deletions Resources/Private/Partials/Filter/Lead/List.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ <h5>Scoring</h5>
type="range"
property="scoring"
class="form-control"
additionalAttributes="{min:0, max:200, data-lux-rangelabel:1}"
additionalAttributes="{min:0, max:200, data-lux-rangelabel:'field'}"
id="scoring"/>
<button type="button" class="btn btn-default" data-global-event="click" data-action-focus="#scoring">
Min: <strong id="scoring_label">{filter.scoring}</strong>
Min: <strong data-lux-rangelabel="container">{filter.scoring}</strong>
</button>
</div>

Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/JavaScript/Lux/Module.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d569c14

Please sign in to comment.