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

Move inline event handlers to <script>

This commit is contained in:
Jakub Vrana
2018-01-12 18:34:19 +01:00
parent 24245867d7
commit 38aac7ada2
4 changed files with 13 additions and 8 deletions

View File

@@ -287,9 +287,10 @@ function editingMoveRow(dir){
var lastType = '';
/** Clear length and hide collation or unsigned
* @param HTMLSelectElement
* @this HTMLSelectElement
*/
function editingTypeChange(type) {
function editingTypeChange() {
var type = this;
var name = type.name.substr(0, type.name.length - 6);
var text = selectValue(type);
for (var i=0; i < type.form.elements.length; i++) {