Fix JS syntax error: remove escaped backticks in addModifierOption
The escaped backticks (\`) were causing "invalid escape sequence" error, breaking the entire script and making the Upload Files button non-functional. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2c655a5963
commit
e8705287cc
1 changed files with 2 additions and 2 deletions
|
|
@ -2551,11 +2551,11 @@
|
|||
const container = document.getElementById('newModOptions');
|
||||
const row = document.createElement('div');
|
||||
row.className = 'modifier-option-row';
|
||||
row.innerHTML = \`
|
||||
row.innerHTML = `
|
||||
<input type="text" class="form-control option-name" placeholder="Option name">
|
||||
<input type="number" class="form-control option-price" placeholder="Price" step="0.01" min="0">
|
||||
<button class="btn btn-sm btn-outline" onclick="removeModifierOption(this)">×</button>
|
||||
\`;
|
||||
`;
|
||||
container.appendChild(row);
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue