mirror of
https://github.com/vrana/adminer.git
synced 2025-08-31 10:01:50 +02:00
Use @this in JavaScript (prepares for removing inline event handlers)
This commit is contained in:
@@ -21,7 +21,8 @@ function whisperClick(event, field) {
|
||||
}
|
||||
}
|
||||
|
||||
function whisper(url, field) {
|
||||
function whisper(url) {
|
||||
var field = this;
|
||||
if (field.orig != field.value) { // ignore arrows, Shift, ...
|
||||
field.orig = field.value;
|
||||
field.previousSibling.value = field.value; // accept number, reject string
|
||||
|
Reference in New Issue
Block a user