diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 84b68f295..50e85ba27 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -647,7 +647,7 @@ public = public dir = directory back = back copy_url=copy download url -directory=check directory of the datasets +directory=preview of the datasets create_label_task=create label task visibility = visibility visibility_description = Only the owner or the organization members if they have rights, will be able to see it. diff --git a/options/locale/locale_zh-CN.ini b/options/locale/locale_zh-CN.ini index fbee11b79..89a6282e5 100755 --- a/options/locale/locale_zh-CN.ini +++ b/options/locale/locale_zh-CN.ini @@ -649,7 +649,7 @@ dir=目录 back=返回 copy_url=复制下载链接 copy_md5=复制文件MD5 -directory=查看数据集目录结构 +directory=数据集预览 create_label_task=创建标注任务 visibility=可见性 visibility_description=只有组织所有人或拥有权利的组织成员才能看到。 diff --git a/public/self/js/Director/detection.js b/public/self/js/Director/detection.js index d97473e25..5f40e73c3 100644 --- a/public/self/js/Director/detection.js +++ b/public/self/js/Director/detection.js @@ -2641,19 +2641,19 @@ function setPage(pageData,pageSize){ } - - canvas = document.getElementById("myCanvas"); - context = canvas.getContext("2d"); - var maxWidth = document.getElementById("showPic").offsetWidth; - var maxHeight = document.getElementById("showPic").offsetHeight-100; - canvas.width = maxWidth;//document.getElementById("tool0").offsetWidth; - canvas.height = maxHeight;//document.getElementById("tool0").offsetWidth/1280*720; + init_index(); + // canvas = document.getElementById("myCanvas"); + // context = canvas.getContext("2d"); + // var maxWidth = document.getElementById("showPic").offsetWidth; + // var maxHeight = document.getElementById("showPic").offsetHeight-100; + // canvas.width = maxWidth;//document.getElementById("tool0").offsetWidth; + // canvas.height = maxHeight;//document.getElementById("tool0").offsetWidth/1280*720; // show_region = document.getElementById("show_region"); // show_region.width =document.getElementById("tool0").offsetWidth; // show_region.height = document.getElementById("tool0").offsetWidth/1280*720; - window.onload = function() { + function init_index() { canvas = document.getElementById("myCanvas"); context = canvas.getContext("2d"); diff --git a/public/self/labelTaskPage.js b/public/self/labelTaskPage.js index 713b22143..e36ab1024 100644 --- a/public/self/labelTaskPage.js +++ b/public/self/labelTaskPage.js @@ -674,7 +674,7 @@ function personLabel(taskid, task_type){ sessionStorage.setItem('return_url',url_name); console.log("task_type=" + task_type); if(task_type == 2 || task_type == 1 || task_type == 4){ - window.open("/self/labeling.html","标注"); + window.open("/self/labeling.html?","标注"+new Date().getMilliseconds()); //window.location.href="/self/labeling.html"; }else if(task_type == 3){ window.location.href="labelingDcm.html"; diff --git a/templates/repo/datasets/dataset_list.tmpl b/templates/repo/datasets/dataset_list.tmpl index 582c73501..3c7f0b3ce 100755 --- a/templates/repo/datasets/dataset_list.tmpl +++ b/templates/repo/datasets/dataset_list.tmpl @@ -25,11 +25,11 @@
- - - + {{if $.IsSigned}} + + {{end}} {{if $.Permission.CanWrite $.UnitTypeDatasets}} {{if $.Repository.IsPrivate}}