mirror of
https://github.com/vrana/adminer.git
synced 2025-08-27 00:05:18 +02:00
SimpleDB, MongoDB: insert more fields at once
This commit is contained in:
@@ -478,6 +478,20 @@ function keyupChange() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Add new field in schema-less edit
|
||||
* @param HTMLInputElement
|
||||
*/
|
||||
function fieldChange(field) {
|
||||
var row = cloneNode(parentTag(field, 'tr'));
|
||||
var inputs = row.getElementsByTagName('input');
|
||||
for (var i = 0; i < inputs.length; i++) {
|
||||
inputs[i].value = '';
|
||||
}
|
||||
// keep value in <select> (function)
|
||||
parentTag(field, 'table').appendChild(row);
|
||||
field.onchange = function () { };
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** Create AJAX request
|
||||
|
Reference in New Issue
Block a user