Browse Source

fix bug #412

tags/v1.21.12.1
zhoupzh 4 years ago
parent
commit
e23306212f
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      public/self/dataset_preview.js

+ 6
- 2
public/self/dataset_preview.js View File

@@ -605,8 +605,11 @@ function last(){


function showfilelist(){
var filename_title = $('a.section:first').text()
filename_title = filename_title.substring(0,filename_title.lastIndexOf('.'))
// 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,fname.indexOf('/'))
var htmlstr = '';
// htmlstr += '<div class="ui list">';
htmlstr += '<div class="item" style="padding:1.2em;border-bottom:0;display: table;width: 100%;">'
@@ -623,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('/'));
}
}


Loading…
Cancel
Save