use random string as id for checkbox
This commit is contained in:
parent
d538a566ac
commit
b16a018da9
1 changed files with 2 additions and 1 deletions
|
@ -17,7 +17,8 @@ var FileList={
|
||||||
"class": "filename",
|
"class": "filename",
|
||||||
"style": 'background-image:url('+iconurl+'); background-size: 32px;'
|
"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({
|
var link_elem = $('<a></a>').attr({
|
||||||
"class": "name",
|
"class": "name",
|
||||||
"href": linktarget
|
"href": linktarget
|
||||||
|
|
Loading…
Reference in a new issue