Index: lams_central/web/comments/reply.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/comments/reply.jsp,v
diff -u -r1.3 -r1.4
--- lams_central/web/comments/reply.jsp 18 Jan 2016 02:18:33 -0000 1.3
+++ lams_central/web/comments/reply.jsp 20 Apr 2016 03:31:54 -0000 1.4
@@ -26,6 +26,14 @@
});
function replyFormSubmit() {
+
+ var btnName = "replyCommentSubmitButton";
+ if ( isDisabled(btnName) ) {
+ return false;
+ }
+
+ disableButton(btnName);
+
var theForm = $(replyForm);
if ( validateBodyText($('#replyFormBody').val(), <%=CommentConstants.MAX_BODY_LENGTH%>, "") ) {
@@ -47,7 +55,10 @@
reloadThread(response,'','','');
});
} // end validateBodyText
- return false;
+ else {
+ enableButton(btnName);
+ }
+ return false;
}
function cancelReply() {
@@ -67,7 +78,7 @@
-
+