方维系统,评论按钮在没输入内容是虚的不能点击,输入内容选择分类后就可以点击了,
代码如下,是官方的,方维图谱系统的JS;
$(comThis.find(".commentTextarea")).keyup(function(){ var comThis = $(this).parent().parent().parent().parent().parent(); var index = ($.trim($(this).val())).length; if (index > 0) { comThis.find(".unpincomment").removeClass().addClass("commentSubmit pincomment"); } else { comThis.find(".pincomment").removeClass().addClass("unpincomment"); } if(index < 141 && index != 0) { var _post = comThis.find(".postcomment"); var this_height = 0; var old_height = $(this).height(); $('.postcomment .commentbody .submit .count em').text(index); var inBei = Math.round(index/16); this_height = 28 + 16*inBei; $(this).css('height',this_height); var addHeight = this_height - old_height; var docTop = parseInt(_post.offsetParent().css("top")); updateHeight(autoLayout.defaults.contentID, cols, addHeight, docTop); } })