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

Introduce getTarget(event)

This commit is contained in:
Jakub Vrana
2013-07-19 10:41:06 -07:00
parent a338f9bf58
commit f8453fe65c
3 changed files with 16 additions and 8 deletions

View File

@@ -7,7 +7,7 @@ function selectFieldChange(form) {
}
function whisperClick(event, field) {
var el = event.target || event.srcElement;
var el = getTarget(event);
if (isTag(el, 'a') && !(event.button || event.shiftKey || event.altKey || isCtrl(event))) {
field.value = el.firstChild.data;
field.previousSibling.value = decodeURIComponent(el.href.replace(/.*=/, ''));