Index: lams_central/web/comments/edit.jsp
===================================================================
RCS file: /usr/local/cvsroot/lams_central/web/comments/edit.jsp,v
diff -u -r1.3 -r1.4
--- lams_central/web/comments/edit.jsp 18 Jan 2016 02:18:33 -0000 1.3
+++ lams_central/web/comments/edit.jsp 20 Apr 2016 03:31:54 -0000 1.4
@@ -29,6 +29,13 @@
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;
};
@@ -68,7 +78,7 @@
-
+