From 10dfc54bf4b5b2c0313f5017a2b9ede49f6ab96c Mon Sep 17 00:00:00 2001 From: Peter Knut Date: Wed, 30 Oct 2024 12:12:23 +0100 Subject: [PATCH] Show help popup after a short delay, refactoring --- adminer/create.inc.php | 4 +- adminer/db.inc.php | 14 +-- adminer/include/adminer.inc.php | 4 +- adminer/include/design.inc.php | 2 +- adminer/include/functions.inc.php | 29 ++++-- adminer/static/editing.js | 149 +++++++++++++++++++++--------- adminer/static/functions.js | 13 ++- editor/static/editing.js | 13 +-- 8 files changed, 152 insertions(+), 76 deletions(-) diff --git a/adminer/create.inc.php b/adminer/create.inc.php index 0224c872..6574e83d 100644 --- a/adminer/create.inc.php +++ b/adminer/create.inc.php @@ -183,7 +183,7 @@ foreach ($engines as $engine) { : " autocapitalize="off"> -" . optionlist(array("" => "(" . lang('engine') . ")") + $engines, $row["Engine"]) . "" . on_help("getTarget(event).value", 1) . script("qsl('select').onchange = helpClose;") : ""); ?> +" . optionlist(array("" => "(" . lang('engine') . ")") + $engines, $row["Engine"]) . "" . help_script_command("value", true) : ""); ?> "(" . lang('collation') . ")") + $collations, $row["Collation"]) : ""); ?> @@ -221,7 +221,7 @@ if (support("partitioning")) { print_fieldset("partition", lang('Partition by'), $row["partition_by"]); ?>

-" . optionlist(array("" => "") + $partition_by, $row["partition_by"]) . "" . on_help("getTarget(event).value.replace(/./, 'PARTITION BY \$&')", 1) . script("qsl('select').onchange = partitionByChange;"); ?> +" . optionlist(array("" => "") + $partition_by, $row["partition_by"]) . "" . help_script_command("value.replace(/./, 'PARTITION BY \$&')", true) . script("qsl('select').onchange = partitionByChange;"); ?> (">) : " value=""> > diff --git a/adminer/db.inc.php b/adminer/db.inc.php index 67735e4c..f07938e6 100644 --- a/adminer/db.inc.php +++ b/adminer/db.inc.php @@ -147,17 +147,17 @@ if ($adminer->homepage()) { echo "\n"; if (!information_schema(DB)) { echo "