1
0
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:
Jakub Vrana
2013-12-20 17:42:13 -08:00
parent df8fce2bf9
commit 8c8f659028
4 changed files with 14 additions and 2 deletions

View File

@@ -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
*/