luyanan 7 年之前
父节点
当前提交
484e20b8bd
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      app/js/paperShow.js

+ 4 - 1
app/js/paperShow.js

@ -771,12 +771,15 @@ document.getElementById("textInputThis").addEventListener("input", function() {
771 771
		var length = trim(this.value);
772 772
		if(length) {
773 773
			document.getElementsByClassName("mui-btn")[0].removeAttribute("disabled");
774
			this.value=this.value.substr(0,200);
775 774
		} else {
776 775
			document.getElementsByClassName("mui-btn")[0].setAttribute("disabled", "true")
777 776
		}
778 777
	})
779 778
document.getElementsByClassName("mui-btn")[0].addEventListener("tap", function() {
779
	if(document.getElementById("textInputThis").value.length>200) {
780
				plus.nativeUI.toast("留言不得超过200个字", toastStyle);
781
				return;
782
			}
780 783
		mui.ajax(baseUrl + "/ajax/leaveWord/paper", {
781 784
			data: {
782 785
				"paperId": paperId,