1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-23 06:32:55 +02:00

JS: Use let/const in spaghetti code

This commit is contained in:
Jakub Vrana
2025-03-20 08:40:15 +01:00
parent 0e21106e48
commit 101229043e
4 changed files with 16 additions and 17 deletions

View File

@@ -34,7 +34,7 @@ class AdminerEmailTable {
echo "<p>" . ('Attachments') . ": <input type='file' name='email_files[]'>";
echo Adminer\script("qsl('input').onchange = function () {
this.onchange = function () { };
var el = this.cloneNode(true);
const el = this.cloneNode(true);
el.value = '';
this.parentNode.appendChild(el);
};");