fixed: photo uploader \n updated: photo uploader design
This commit is contained in:
parent
73300e2ed0
commit
7356935247
2 changed files with 10 additions and 2 deletions
|
@ -180,7 +180,11 @@
|
||||||
var link = document.createElement("a");
|
var link = document.createElement("a");
|
||||||
link.href = "#tab"+index;
|
link.href = "#tab"+index;
|
||||||
link.setAttribute("data-toggle", "tab");
|
link.setAttribute("data-toggle", "tab");
|
||||||
link.innerHTML = "(" + (index + 1) + ") " + file.name;
|
if(files.length < 8){
|
||||||
|
link.innerHTML = "(" + (index + 1) + ") " + file.name.substring(0, 10);
|
||||||
|
}else{
|
||||||
|
link.innerHTML = "(" + (index + 1) + ") ";
|
||||||
|
}
|
||||||
li.id = index++;
|
li.id = index++;
|
||||||
li.appendChild(link);
|
li.appendChild(link);
|
||||||
ul.appendChild(li);
|
ul.appendChild(li);
|
||||||
|
|
|
@ -104,7 +104,11 @@
|
||||||
link.href = "#tab"+index;
|
link.href = "#tab"+index;
|
||||||
link.setAttribute("data-toggle", "tab");
|
link.setAttribute("data-toggle", "tab");
|
||||||
// link.innerHTML = file.name + " (" + plupload.formatSize(file.size) + ")";
|
// link.innerHTML = file.name + " (" + plupload.formatSize(file.size) + ")";
|
||||||
link.innerHTML = "(" + (index + 1) + ") " + file.name;
|
if(files.length < 8){
|
||||||
|
link.innerHTML = "(" + (index + 1) + ") " + file.name.substring(0, 10);
|
||||||
|
}else{
|
||||||
|
link.innerHTML = "(" + (index + 1) + ") ";
|
||||||
|
}
|
||||||
li.id = index++;
|
li.id = index++;
|
||||||
li.appendChild(link);
|
li.appendChild(link);
|
||||||
ul.appendChild(li);
|
ul.appendChild(li);
|
||||||
|
|
Loading…
Add table
Reference in a new issue