Index: lams_central/web/comments/edit.jsp =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/comments/edit.jsp,v diff -u -r1.2.2.4 -r1.2.2.5 --- lams_central/web/comments/edit.jsp 23 Feb 2016 14:23:03 -0000 1.2.2.4 +++ lams_central/web/comments/edit.jsp 20 Apr 2016 02:58:10 -0000 1.2.2.5 @@ -26,9 +26,16 @@ $('#editForm').submit(function() { // catch the form's submit event editCommentSubmit() } ); - + function editCommentSubmit() { + var btnName = "editCommentSubmitButton"; + if ( isDisabled(btnName) ) { + return false; + } + + disableButton(btnName); + var theForm = $(editForm); if ( validateBodyText($('#editFormBody').val(), <%=CommentConstants.MAX_BODY_LENGTH%>, "") ) { @@ -48,6 +55,9 @@ reloadThread(response,'','',''); }); } // end validateBodyText + else { + enableButton(btnName); + } return false; }; @@ -64,7 +74,7 @@