mirror of
https://github.com/vrana/adminer.git
synced 2025-08-26 07:44:37 +02:00
Don't reset column when searching for an empty value with Enter
This commit is contained in:
@@ -311,6 +311,17 @@ function selectAddRow(field) {
|
||||
field.parentNode.parentNode.appendChild(row);
|
||||
}
|
||||
|
||||
/** Prevent onsearch handler on Enter
|
||||
* @param HTMLInputElement
|
||||
* @param KeyboardEvent
|
||||
*/
|
||||
function selectSearchKeydown(el, event) {
|
||||
if (event.keyCode == 13 || event.keyCode == 10) {
|
||||
el.onsearch = function () {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
/** Clear column name after resetting search
|
||||
* @param HTMLInputElement
|
||||
*/
|
||||
|
Reference in New Issue
Block a user