Index: ssts-web/src/main/webapp/networkdisk/addFile.jsp =================================================================== diff -u -r15869 -r17419 --- ssts-web/src/main/webapp/networkdisk/addFile.jsp (.../addFile.jsp) (revision 15869) +++ ssts-web/src/main/webapp/networkdisk/addFile.jsp (.../addFile.jsp) (revision 17419) @@ -7,7 +7,7 @@ 创建文件 <%@ include file="/common/includeUploadFilesJSAndCSS.jsp"%> -<%----%> + @@ -24,14 +24,14 @@ YAHOO.example.init = function() { var tabView = new YAHOO.widget.TabView(); - + YAHOO.util.Event.onContentReady('top-stories', function() { var modules = YAHOO.util.Dom.getElementsByClassName('mod', 'div', this); - + YAHOO.util.Dom.batch(modules, function(module) { tabView.addTab( new YAHOO.widget.Tab({ label: module.getElementsByTagName('h3')[0].innerHTML, - contentEl: YAHOO.util.Dom.getElementsByClassName('bd', + contentEl: YAHOO.util.Dom.getElementsByClassName('bd', 'div', module)[0] })); YAHOO.util.Dom.setStyle(module, 'display', 'none'); /* hide modules */ @@ -50,24 +50,23 @@ function checkSubmit() { if (bCancel){ return false; - } else { + } + else { bCancel=true; - if (isFieldNotNull(document.getElementById("name"), - '请填写文件名称!') == false) { +// if (isFieldNotNull(document.getElementById("name"), '请填写文件名称!') == false) { +// bCancel=false; +// return false; +// } + if (isFieldNotNull(document.getElementById("administratorsForDisplay"), '请选择管理员!') == false) { bCancel=false; return false; } - if (isFieldNotNull(document.getElementById("administratorsForDisplay"), - '请选择管理员!') == false) { - bCancel=false; - return false; - } if (document.getElementById("remark").value.Trim().length>100) { alert("备注字数不能多于100个字符!"); bCancel=false; return false; } - return true; + return true; } } @@ -79,8 +78,8 @@ <% // TODO:需要判断是否有编辑的权限 - request.setAttribute("isEditAuthority", true); - + request.setAttribute("isEditAuthority", true); + %> @@ -98,7 +97,7 @@
@@ -113,7 +112,7 @@ - +
  • 返回 @@ -192,9 +191,9 @@ - + - + @@ -204,10 +203,18 @@ - +