diff --git a/copyparty/web/shares.js b/copyparty/web/shares.js index 783b4561..b0669318 100644 --- a/copyparty/web/shares.js +++ b/copyparty/web/shares.js @@ -16,7 +16,7 @@ function rm() { } function bump() { - var k = this.closest('tr').getElementsByTagName('a')[2].getAttribute('k'), + var k = this.closest('tr').querySelector('a[k]').getAttribute('k'), u = SR + '/?skey=' + uricom_enc(k) + '&eshare=' + this.value, xhr = new XHR();