Cleanup of logic and look.
This commit is contained in:
parent
ce7e86cbef
commit
ce38511904
|
@ -25,11 +25,11 @@ function updateHTMLDirList(returnData) {
|
||||||
if (dir != "resources/") {
|
if (dir != "resources/") {
|
||||||
insertArea.innerHTML +=
|
insertArea.innerHTML +=
|
||||||
"<div class=\"dirStyle\"> <img id=\"dirID\""
|
"<div class=\"dirStyle\"> <img id=\"dirID\""
|
||||||
+" class=\"systemIcon\" src=\"resources/images/icons/folder.png\" />"
|
+ " class=\"systemIcon\" src=\"resources/images/icons/folder.png\" />"
|
||||||
+ "<input type=\"text\" id=\"titleID\" class=\"dirTitle\""
|
+ "<input type=\"text\" id=\"titleID\" class=\"dirTitle\""
|
||||||
+ " readonly=\"true\" value=\"" + dir + "\" "
|
+ " readonly=\"true\" value=\"" + dir + "\" "
|
||||||
+ " onfocusout=\"disableEdits(this)\"/>"
|
+ " onfocusout=\"disableEdits(this)\"/>"
|
||||||
+"</dir>";
|
+ "</dir>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,9 +62,10 @@ function updateHTMLDirList(returnData) {
|
||||||
|
|
||||||
if (thumbnail.match(/000\.(jpg|png|gif)\b/) == null &&
|
if (thumbnail.match(/000\.(jpg|png|gif)\b/) == null &&
|
||||||
!thumbnail.includes("favicon.png")) {
|
!thumbnail.includes("favicon.png")) {
|
||||||
insertArea.innerHTML += "<img id=\"imageID\" class=\"iconImg\""
|
insertArea.innerHTML +=
|
||||||
+ " src=\"" + path + thumbnail
|
"<img id=\"imageID\" class=\"iconImg\""
|
||||||
+ "\" alt=\"" + thumbnail + "\"/>";
|
+ " src=\"" + path + thumbnail
|
||||||
|
+ "\" alt=\"" + thumbnail + "\"/>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,8 +85,7 @@ function updateHTMLDirList(returnData) {
|
||||||
+ setFileIconType(fileName);
|
+ setFileIconType(fileName);
|
||||||
|
|
||||||
insertArea.innerHTML +=
|
insertArea.innerHTML +=
|
||||||
"<div class=\"fileStyle\">"
|
"<div class=\"fileStyle\">" + iconImg
|
||||||
+ iconImg
|
|
||||||
+ "<input type=\"text\" id=\"titleID\" class=\"fileTitle\""
|
+ "<input type=\"text\" id=\"titleID\" class=\"fileTitle\""
|
||||||
+ " readonly=\"true\"" + " value=\"" + fileName + "\" "
|
+ " readonly=\"true\"" + " value=\"" + fileName + "\" "
|
||||||
+ " onfocusout=\"disableEdits(this)\"/>"
|
+ " onfocusout=\"disableEdits(this)\"/>"
|
||||||
|
|
Loading…
Reference in New Issue