use random string as id for checkbox

This commit is contained in:
Georg Ehrke 2013-08-26 16:33:51 +02:00
parent d538a566ac
commit b16a018da9

View file

@ -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