diff options
author | Georg Ehrke <developer@georgehrke.com> | 2013-08-26 16:33:51 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2013-08-26 16:33:51 +0200 |
commit | b16a018da99259278ba2f93f1e0c2d2e2bce6fb0 (patch) | |
tree | aba43938d81b8f435f62807e83c6fcd3378b8dd9 /apps | |
parent | d538a566acac35eab811b2bfa16596fb8534db0f (diff) | |
download | nextcloud-server-b16a018da99259278ba2f93f1e0c2d2e2bce6fb0.tar.gz nextcloud-server-b16a018da99259278ba2f93f1e0c2d2e2bce6fb0.zip |
use random string as id for checkbox
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 7a48453488a..cbeca1764ea 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -17,7 +17,8 @@ var FileList={ "class": "filename", "style": 'background-image:url('+iconurl+'); background-size: 32px;' }); - td.append('<input id="select-"'+name+'" type="checkbox" /><label for="select-"'+name+'"></label>'); + var rand = Math.random().toString(16).slice(2); + td.append('<input id="select-'+rand+'" type="checkbox" /><label for="select-'+rand+'"></label>'); var link_elem = $('<a></a>').attr({ "class": "name", "href": linktarget |