diff --git a/theme/flatcard.html b/theme/flatcard.html
index 41ce390..22622d2 100644
--- a/theme/flatcard.html
+++ b/theme/flatcard.html
@@ -103,6 +103,10 @@
display: inline-block;
position:relative
}
+ .list-table tbody.grid-view td.file a > span {
+ position: absolute;
+ left: 3px;
+ }
.list-table tbody.grid-view td.file .download {
display: none;
}
@@ -746,13 +750,38 @@
}
+ var isGrid = false;
+ var isthumbLoaded = false;
function showthumbnails(obj) {
+
images = [];
var files=document.getElementsByName('filelist');
- // turn to grid view
- var list_body = document.getElementById('list-table').firstElementChild
- list_body.classList.add('grid-view')
+ if (document.getElementById('originalpic').checked==true){
+ if(isGrid){
+ var list_body = document.getElementById('list-table').firstElementChild
+ list_body.classList.remove('grid-view')
+ isGrid = false
+ }
+ }else {
+ if(!isGrid){
+ // turn to grid view
+ var list_body = document.getElementById('list-table').firstElementChild
+ list_body.classList.add('grid-view')
+ isGrid = true
+ if (isthumbLoaded) {
+ return
+ }else {
+ isthumbLoaded = true
+ }
+ } else {
+ var list_body = document.getElementById('list-table').firstElementChild
+ list_body.classList.remove('grid-view')
+ isGrid = false
+ return
+ }
+ }
+
for ($i=0;$i';
+ if (xhr.responseText!='') filea.innerHTML= '' + filea.innerHTML + '' + '';
} else console.log(xhr.status+'\n'+xhr.responseText);
}
}