1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-07 15:16:44 +02:00

Make maxlength in all fields a soft limit

This commit is contained in:
Jakub Vrana
2018-07-15 21:05:26 +02:00
parent e8e4934e97
commit d581f3dedb
11 changed files with 15 additions and 14 deletions

View File

@@ -34,7 +34,7 @@ class AdminerSlugify {
}
$slug = $slugify[$field["field"]];
if ($slug !== null) {
return "<input value='" . h($value) . "' maxlength='$field[length]' size='40'$attrs>"
return "<input value='" . h($value) . "' data-maxlength='$field[length]' size='40'$attrs>"
. script("qsl('input').onchange = function () {
var find = '$this->from';
var repl = '$this->to';