Browse Source

显示删除按钮

sunyj 8 years ago
parent
commit
04f33f0169

+ 1 - 1
src/main/webapp/WEB-INF/views/files.html

@@ -44,7 +44,7 @@
 		<button id="detailedMessageButton" title="获取更多错误信息" hidden="true">更多信息</button>
 		<p id="detailedMessage" hidden="true"></p>
 	</div>
-	<div id="uploadContainer" hidden="true">
+	<div id="uploadContainer">
 		<button id="uploadButton" title="上传">
 			<i class="fa fa-cloud-upload fa-4x" aria-hidden="true"> </i>
 		</button>

+ 2 - 2
src/main/webapp/resources/js/files/app.js

@@ -7,8 +7,8 @@ var filePathParameter = getParameter("filePath");
 // 是否显示上传按钮(默认显示)
 // var showUpload = getParameter("showUpload");
 var showUpload = true;
-// 是否显示删除按钮
-var showDelete = getParameter("showDelete");
+// 是否显示删除按钮(默认显示)
+var showDelete = true;
 var currentPath = new Object();
 // 如果不存在filePath参数,表示进入相对路径(相对于所配置的本地资源根路径)
 currentPath.value = filePathParameter || "/";