Index: ssts-web/src/main/webapp/WEB-INF/tlds/attachfile.tld =================================================================== diff -u -r12331 -r15837 --- ssts-web/src/main/webapp/WEB-INF/tlds/attachfile.tld (.../attachfile.tld) (revision 12331) +++ ssts-web/src/main/webapp/WEB-INF/tlds/attachfile.tld (.../attachfile.tld) (revision 15837) @@ -23,6 +23,11 @@ true + tipMsg + false + true + + shareAttachFiles false true Index: forgon-core/src/main/java/com/forgon/attachfile/tags/AttachFileTag.java =================================================================== diff -u -r15795 -r15837 --- forgon-core/src/main/java/com/forgon/attachfile/tags/AttachFileTag.java (.../AttachFileTag.java) (revision 15795) +++ forgon-core/src/main/java/com/forgon/attachfile/tags/AttachFileTag.java (.../AttachFileTag.java) (revision 15837) @@ -22,8 +22,17 @@ private boolean enableEditField = true; private boolean enableShowAttachFiles = true; private boolean shareAttachFiles = false; + private String tipMsg; private String poObjectName; + public String getTipMsg() { + return tipMsg; + } + + public void setTipMsg(String tipMsg) { + this.tipMsg = tipMsg; + } + public boolean getEnableEditField() { return enableEditField; } @@ -117,9 +126,12 @@ + AppKeys.Attach_File_Field_Prefix + "0\" id=\"" + AppKeys.Attach_File_Field_Prefix + "0\" class=\"file\" onchange=\"addFile(this)\" />"; - urlStr += "  提示:上传视频推荐使用mp4格式
"; + urlStr += "  "; + + urlStr += tipMsg != null ? tipMsg : "提示:您能发送的附件总容量最大为50M"; + urlStr += "
"; + // urlStr += "  提示:上传视频推荐使用mp4格式
"; // urlStr += "  提示:您能发送的附件总容量最大为50M
"; return urlStr; } - }