mirror of
https://github.com/vrana/adminer.git
synced 2025-08-30 17:50:00 +02:00
JS: Unsupport event.srcElement
This commit is contained in:
@@ -45,7 +45,7 @@ function whisper(url) {
|
||||
*/
|
||||
function whisperClick(event) {
|
||||
const field = this.previousSibling;
|
||||
const el = getTarget(event);
|
||||
const el = event.target;
|
||||
if (isTag(el, 'a') && !(event.button || event.shiftKey || event.altKey || isCtrl(event))) {
|
||||
field.value = el.firstChild.data;
|
||||
field.previousSibling.value = decodeURIComponent(el.href.replace(/.*=/, ''));
|
||||
|
Reference in New Issue
Block a user