]> git.joonet.de Git - adminer.git/commitdiff
JS: Fix typo after def9e07
authorJakub Vrana <jakub@vrana.cz>
Thu, 20 Mar 2025 08:16:53 +0000 (09:16 +0100)
committerJakub Vrana <jakub@vrana.cz>
Thu, 20 Mar 2025 08:17:04 +0000 (09:17 +0100)
adminer/static/editing.js

index 99aa345f8a9030edf8cf4842efc1076ffed08800..66d92b63780d03509e835387cc2144a037d46692 100644 (file)
@@ -405,7 +405,7 @@ function editingTypeChange() {
        const type = this;
        const name = type.name.substr(0, type.name.length - 6);
        const text = selectValue(type);
-       for (const el of type.form.elements.length) {
+       for (const el of type.form.elements) {
                if (el.name == name + '[length]') {
                        if (!(
                                (/(char|binary)$/.test(lastType) && /(char|binary)$/.test(text))