Fixed bg setting issue
This commit is contained in:
parent
1008f4d093
commit
e3f4f5bde9
|
@ -68,7 +68,7 @@ function updateHTMLDirList(returnData) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setup background if there is a 000.* in selection
|
// Setup background if there is a 000.* in selection
|
||||||
var bgImgPth = images[0].children[0].innerHTML;
|
var bgImgPth = images[0] ? images[0].children[0].innerHTML : "";
|
||||||
if (bgImgPth.match(/000\.(jpg|png|gif)\b/) != null) {
|
if (bgImgPth.match(/000\.(jpg|png|gif)\b/) != null) {
|
||||||
updateBG(path + bgImgPth);
|
updateBG(path + bgImgPth);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue