fix(stock): escapejs translated option text in batch location selects
This commit is contained in:
parent
499ffe824e
commit
9a85696d90
2 changed files with 4 additions and 4 deletions
|
|
@ -458,11 +458,11 @@ function resetLocationSelects(lineEl) {
|
||||||
const lineSource = lineEl.querySelector('.source-location-select');
|
const lineSource = lineEl.querySelector('.source-location-select');
|
||||||
const lineDest = lineEl.querySelector('.destination-location-select');
|
const lineDest = lineEl.querySelector('.destination-location-select');
|
||||||
if (lineSource) {
|
if (lineSource) {
|
||||||
lineSource.innerHTML = '<option value="">-- {% translate "Sélectionnez d\'abord un produit" %} --</option>';
|
lineSource.innerHTML = '<option value="">-- {% filter escapejs %}{% translate "Sélectionnez d\'abord un produit" %}{% endfilter %} --</option>';
|
||||||
lineSource.disabled = true;
|
lineSource.disabled = true;
|
||||||
}
|
}
|
||||||
if (lineDest) {
|
if (lineDest) {
|
||||||
lineDest.innerHTML = '<option value="">-- {% translate "Sélectionnez d\'abord un produit" %} --</option>';
|
lineDest.innerHTML = '<option value="">-- {% filter escapejs %}{% translate "Sélectionnez d\'abord un produit" %}{% endfilter %} --</option>';
|
||||||
lineDest.disabled = true;
|
lineDest.disabled = true;
|
||||||
}
|
}
|
||||||
const sHint = lineEl.querySelector('.source-stock-hint');
|
const sHint = lineEl.querySelector('.source-stock-hint');
|
||||||
|
|
|
||||||
|
|
@ -560,11 +560,11 @@ function resetLocationSelects(lineEl) {
|
||||||
const lineSource = lineEl.querySelector('.source-location-select');
|
const lineSource = lineEl.querySelector('.source-location-select');
|
||||||
const lineDest = lineEl.querySelector('.destination-location-select');
|
const lineDest = lineEl.querySelector('.destination-location-select');
|
||||||
if (lineSource) {
|
if (lineSource) {
|
||||||
lineSource.innerHTML = '<option value="">-- {% translate "Sélectionnez d\'abord un produit" %} --</option>';
|
lineSource.innerHTML = '<option value="">-- {% filter escapejs %}{% translate "Sélectionnez d\'abord un produit" %}{% endfilter %} --</option>';
|
||||||
lineSource.disabled = true;
|
lineSource.disabled = true;
|
||||||
}
|
}
|
||||||
if (lineDest) {
|
if (lineDest) {
|
||||||
lineDest.innerHTML = '<option value="">-- {% translate "Sélectionnez d\'abord un produit" %} --</option>';
|
lineDest.innerHTML = '<option value="">-- {% filter escapejs %}{% translate "Sélectionnez d\'abord un produit" %}{% endfilter %} --</option>';
|
||||||
lineDest.disabled = true;
|
lineDest.disabled = true;
|
||||||
}
|
}
|
||||||
const sHint = lineEl.querySelector('.source-stock-hint');
|
const sHint = lineEl.querySelector('.source-stock-hint');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue