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

Centralize oninput

This commit is contained in:
Jakub Vrana
2018-02-09 21:23:42 +01:00
parent ea1ff7e902
commit 1ec4637ade
2 changed files with 14 additions and 5 deletions

View File

@@ -224,6 +224,16 @@ function editingClick(event) {
}
}
/** Handle input on fields editing
* @param InputEvent
*/
function editingInput(event) {
var el = getTarget(event);
if (/\[default\]$/.test(el.name)) {
el.previousSibling.checked = true;
}
}
/** Detect foreign key
* @this HTMLInputElement
*/