Index: lams_tool_preview/web/pages/learning/comment.jsp =================================================================== diff -u -r9c67c4442e3be5f0e4ff25e09dbafa61cd29d2c8 -r1a95fab3ccfb6157bf176c530eb7ae5c0900bdd7 --- lams_tool_preview/web/pages/learning/comment.jsp (.../comment.jsp) (revision 9c67c4442e3be5f0e4ff25e09dbafa61cd29d2c8) +++ lams_tool_preview/web/pages/learning/comment.jsp (.../comment.jsp) (revision 1a95fab3ccfb6157bf176c530eb7ae5c0900bdd7) @@ -20,9 +20,9 @@ COUNT_RATED_ITEMS = 0, // only applies to stars LAMS_URL = '${lams}', COMMENTS_MIN_WORDS_LIMIT = ${criteriaRatings.ratingCriteria.commentsMinWordsLimit}, - COMMENT_TEXTAREA_TIP_LABEL = '', - WARN_COMMENTS_IS_BLANK_LABEL = '', - WARN_MIN_NUMBER_WORDS_LABEL = "", + COMMENT_TEXTAREA_TIP_LABEL = '', + WARN_COMMENTS_IS_BLANK_LABEL = '', + WARN_MIN_NUMBER_WORDS_LABEL = "", ALLOW_RERATE = true, SESSION_ID = ${toolSessionId}; @@ -194,7 +194,7 @@ function updatedComment(comment) { // if the data has been saved to the database, don't clear it! if ( comment.value == '' && comment.defaultValue != '' ) { - alert(''); + alert(''); comment.value = comment.defaultValue; return; } @@ -215,7 +215,7 @@ }); } } - $('#countRatedItemsSpan').html(''.replace('{0}', numCommentsOnPage + commentsOnOtherPages)); + $('#countRatedItemsSpan').html(''.replace('{0}', numCommentsOnPage + commentsOnOtherPages)); checkButtons(); return true; } @@ -226,7 +226,7 @@ hideButtons(); if (!skipNumberValidation && (numCommentsOnPage + commentsOnOtherPages < ${minRates})) { - alert(''.replace('{0}',${minRates}) ); + alert(''.replace('{0}',${minRates}) ); return false; } @@ -264,7 +264,7 @@ success: function (response) { var countCommentsSaved = response.countCommentsSaved; if ( ! ( countCommentsSaved > 0 ) ) { - alert(''); + alert(''); showButtons(); return false; } else {