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

Use <script> instead of inline event handler for skipping original

This commit is contained in:
Jakub Vrana
2018-01-12 23:27:14 +01:00
parent b6cc584f48
commit 001c37e240
2 changed files with 24 additions and 11 deletions

View File

@@ -538,6 +538,17 @@ function functionChange() {
helpClose();
}
/** Skip 'original' when typing
* @param number
* @this HTMLTableCellElement
*/
function skipOriginal(first) {
var fnSelect = this.previousSibling.firstChild;
if (fnSelect.selectedIndex < first) {
fnSelect.selectedIndex = first;
}
}
/** Add new field in schema-less edit
* @this HTMLInputElement
*/