Index: lams_central/web/comments/reply.jsp
===================================================================
diff -u -r5943e05705f7614c7c1c29d13ce50deacdc46cc0 -r70a58e52215be36bba02d60d98eee77b372accf1
--- lams_central/web/comments/reply.jsp (.../reply.jsp) (revision 5943e05705f7614c7c1c29d13ce50deacdc46cc0)
+++ lams_central/web/comments/reply.jsp (.../reply.jsp) (revision 70a58e52215be36bba02d60d98eee77b372accf1)
@@ -26,7 +26,6 @@
});
function replyFormSubmit() {
-
var btnName = "replyCommentSubmitButton";
if ( isDisabled(btnName) ) {
return false;
@@ -35,34 +34,31 @@
disableButton(btnName);
var theForm = $(replyForm);
- if (validateBodyText($('#replyFormBody').val(),
-<%=CommentConstants.MAX_BODY_LENGTH%>
- ,
+ if (validateBodyText($('#replyFormBody').val(), <%=CommentConstants.MAX_BODY_LENGTH%>,
"")) {
- $
- .ajax({ // create an AJAX call...
- data : theForm.serialize(),
- processData : false, // tell jQuery not to process the data
- contentType : false, // tell jQuery not to set contentType
- type : theForm.attr('method'), // GET or POST
- url : theForm.attr('action'), // the file to call
- })
- .done(
- function(response) {
-
- var commentUid = response.commentUid;
- if (commentUid) {
- // make sure the old reply form is gone, so if something goes wrong
- // the user won't try to submit it again
- $('#reply').remove();
- }
- reloadThread(
- response,
- '',
- '',
- '');
- });
+ $.ajax({ // create an AJAX call...
+ data : theForm.serialize(),
+ processData : false, // tell jQuery not to process the data
+ contentType : false, // tell jQuery not to set contentType
+ type : theForm.attr('method'), // GET or POST
+ url : theForm.attr('action'), // the file to call
+ })
+ .done(function(response) {
+ var commentUid = response.commentUid;
+ if (commentUid) {
+ // make sure the old reply form is gone, so if something goes wrong
+ // the user won't try to submit it again
+ $('#reply').remove();
+ }
+
+ reloadThread(
+ response,
+ '',
+ '',
+ ''
+ );
+ });
} // end validateBodyText
else {
enableButton(btnName);