|
|
|
@@ -573,7 +573,10 @@ function next(){ |
|
|
|
|
|
|
|
function clickLast(){ |
|
|
|
if(fileindex == 0){ |
|
|
|
lastindex=true; |
|
|
|
prePage(); |
|
|
|
lastindex=false; |
|
|
|
|
|
|
|
}else{ |
|
|
|
last(); |
|
|
|
} |
|
|
|
@@ -602,8 +605,11 @@ function last(){ |
|
|
|
|
|
|
|
|
|
|
|
function showfilelist(){ |
|
|
|
var filename_title = $('a.section:first').text() |
|
|
|
filename_title = filename_title.split('.')[0] |
|
|
|
// var filename_title = $('a.section:first').text() |
|
|
|
// filename_title = filename_title.substring(0,filename_title.lastIndexOf('.')) |
|
|
|
var filename_index = labeltastresult[0].pic_image_field.indexOf("/",70); |
|
|
|
filename_title = labeltastresult[0].pic_image_field.substring(filename_index + 1); |
|
|
|
filename_title = filename_title.substring(0,filename_title.indexOf('/')) |
|
|
|
var htmlstr = ''; |
|
|
|
// htmlstr += '<div class="ui list">'; |
|
|
|
htmlstr += '<div class="item" style="padding:1.2em;border-bottom:0;display: table;width: 100%;">' |
|
|
|
@@ -620,6 +626,7 @@ function showfilelist(){ |
|
|
|
console.log(tmpIndex) |
|
|
|
if(tmpIndex != -1){ |
|
|
|
fname = labeltastresult[i].pic_image_field.substring(tmpIndex + 1); |
|
|
|
fname = fname.substring(fname.indexOf('/')+1); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@@ -666,7 +673,7 @@ function breadFiles(){ |
|
|
|
// } |
|
|
|
var fname_full_path="" |
|
|
|
var filename_title = $('a.section:first').text() |
|
|
|
filename_title = filename_title.split('.')[0] |
|
|
|
filename_title = filename_title.substring(0,filename_title.lastIndexOf('.')) |
|
|
|
var tmp_index = tableData[fileindex].pic_image_field.indexOf("/",70); |
|
|
|
if(tmp_index != -1){ |
|
|
|
fname_full_path = tableData[fileindex].pic_image_field.substring(tmp_index + 1); |
|
|
|
|