1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-18 12:21:24 +02:00

Reset event handlers after cloning (thanks to Salko)

This commit is contained in:
Jakub Vrana
2018-07-15 20:09:48 +02:00
parent cf76ad529b
commit df90d9f68c
3 changed files with 4 additions and 3 deletions

View File

@@ -55,8 +55,8 @@ function whisperClick(event) {
* @this HTMLInputElement
*/
function emailFileChange() {
this.onchange = function () { };
var el = this.cloneNode(true);
this.onchange = function () { };
el.value = '';
this.parentNode.appendChild(el);
}