diff --git a/adminer/create.inc.php b/adminer/create.inc.php
index 9215d6f3..953cd590 100644
--- a/adminer/create.inc.php
+++ b/adminer/create.inc.php
@@ -183,7 +183,7 @@ foreach ($engines as $engine) {
\n";
- echo ($engines ? html_select("Engine", array("" => "(" . lang('engine') . ")") + $engines, $row["Engine"]) . on_help("getTarget(event).value", 1) . script("qsl('select').onchange = helpClose;") . "\n" : "");
+ echo ($engines ? html_select("Engine", array("" => "(" . lang('engine') . ")") + $engines, $row["Engine"]) . on_help("event.target.value", 1) . script("qsl('select').onchange = helpClose;") . "\n" : "");
if ($collations) {
echo "";
echo (preg_match("~sqlite|mssql~", JUSH) ? "" : "");
@@ -221,7 +221,7 @@ if (support("columns")) {
if (support("partitioning")) {
$partition_table = preg_match('~RANGE|LIST~', $row["partition_by"]);
print_fieldset("partition", lang('Partition by'), $row["partition_by"]);
- echo "
" . html_select("partition_by", array("" => "") + $partition_by, $row["partition_by"]) . on_help("getTarget(event).value.replace(/./, 'PARTITION BY \$&')", 1) . script("qsl('select').onchange = partitionByChange;");
+ echo "
" . html_select("partition_by", array("" => "") + $partition_by, $row["partition_by"]) . on_help("event.target.value.replace(/./, 'PARTITION BY \$&')", 1) . script("qsl('select').onchange = partitionByChange;");
echo "()\n";
echo lang('Partitions') . ": \n";
echo "
\n";
diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php
index 8e796e60..9fcd06ed 100644
--- a/adminer/include/adminer.inc.php
+++ b/adminer/include/adminer.inc.php
@@ -387,7 +387,7 @@ class Adminer {
($key !== "" ? "selectFieldChange" : "selectAddRow")
);
echo "" . ($driver->functions || $driver->grouping ? html_select("columns[$i][fun]", array(-1 => "") + array_filter(array(lang('Functions') => $driver->functions, lang('Aggregation') => $driver->grouping)), $val["fun"])
- . on_help("getTarget(event).value && getTarget(event).value.replace(/ |\$/, '(') + ')'", 1)
+ . on_help("event.target.value && event.target.value.replace(/ |\$/, '(') + ')'", 1)
. script("qsl('select').onchange = function () { helpClose();" . ($key !== "" ? "" : " qsl('select, input', this.parentNode).onchange();") . " };", "")
. "($column)" : $column) . "
\n";
$i++;
diff --git a/adminer/include/html.inc.php b/adminer/include/html.inc.php
index ec338e16..c3d19595 100644
--- a/adminer/include/html.inc.php
+++ b/adminer/include/html.inc.php
@@ -280,7 +280,7 @@ function input($field, $value, $function, $autofocus = false) {
$has_function = (in_array($function, $functions) || isset($functions[$function]));
echo (count($functions) > 1
? ""
- . on_help("getTarget(event).value.replace(/^SQL\$/, '')", 1)
+ . on_help("event.target.value.replace(/^SQL\$/, '')", 1)
. script("qsl('select').onchange = functionChange;", "")
: h(reset($functions))
) . '';
diff --git a/adminer/static/editing.js b/adminer/static/editing.js
index 9f5d4f21..94dec188 100644
--- a/adminer/static/editing.js
+++ b/adminer/static/editing.js
@@ -237,7 +237,7 @@ function editFields() {
},
onchange: editingTypeChange,
onmouseover: function (event) {
- helpMouseover.call(this, event, getTarget(event).value, 1);
+ helpMouseover.call(this, event, event.target.value, 1);
},
onmouseout: helpMouseout
});
@@ -249,7 +249,7 @@ function editFields() {
* @return boolean false to cancel action
*/
function editingClick(event) {
- let el = getTarget(event);
+ let el = event.target;
if (!isTag(el, 'input')) {
el = parentTag(el, 'label');
el = el && qs('input', el);
@@ -282,7 +282,7 @@ function editingClick(event) {
* @param InputEvent
*/
function editingInput(event) {
- const el = getTarget(event);
+ const el = event.target;
if (/\[default]$/.test(el.name)) {
el.previousElementSibling.checked = true;
el.previousElementSibling.selectedIndex = Math.max(el.previousElementSibling.selectedIndex, 1);
@@ -546,7 +546,7 @@ function editingCommentsClick(el, focus) {
* @this HTMLTableElement
*/
function dumpClick(event) {
- let el = parentTag(getTarget(event), 'label');
+ let el = parentTag(event.target, 'label');
if (el) {
el = qs('input', el);
const match = /(.+)\[]$/.exec(el.name);
@@ -758,7 +758,7 @@ let helpOpen, helpIgnore; // when mouse outs |