mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Centralize oninput
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user