Przeglądaj źródła

Disable the delete button

kl 2 lat temu
rodzic
commit
134ff34c5e
1 zmienionych plików z 1 dodań i 2 usunięć
  1. 1 2
      server/src/main/resources/web/index.ftl

+ 1 - 2
server/src/main/resources/web/index.ftl

@@ -208,8 +208,7 @@
         }).on('pre-body.bs.table', function (e, data) {
             // 每个data添加一列用来操作
             $(data).each(function (index, item) {
-                item.action = "<a class='btn btn-success' target='_blank' href='${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode('${baseUrl}' + item.fileName)) + "'>预览</a>" +
-                "<a class='btn btn-danger' style='margin-left:10px;' href='javascript:void(0);' onclick='deleteFile(\"" +  encodeURIComponent(Base64.encode('${baseUrl}' + item.fileName)) + "\")'>删除</a>";
+                item.action = "<a class='btn btn-success' target='_blank' href='${baseUrl}onlinePreview?url=" + encodeURIComponent(Base64.encode('${baseUrl}' + item.fileName)) + "'>预览</a>";
             });
             return data;
         }).on('post-body.bs.table', function (e, data) {