Index: lams_central/web/comments/topicview.jsp =================================================================== diff -u -r7475d08afc280b5e2e5ddf04e8bf35e3166aaf80 -r70a58e52215be36bba02d60d98eee77b372accf1 --- lams_central/web/comments/topicview.jsp (.../topicview.jsp) (revision 7475d08afc280b5e2e5ddf04e8bf35e3166aaf80) +++ lams_central/web/comments/topicview.jsp (.../topicview.jsp) (revision 70a58e52215be36bba02d60d98eee77b372accf1) @@ -100,7 +100,7 @@ function updateLike(commentUid, url, incValue) { $.ajax({ // create an AJAX call... - type: 'GET', + type: 'POST', url: url }) .done(function (response) { @@ -117,9 +117,11 @@ } function likeEntry(commentUid) { - updateLike(commentUid, + updateLike( + commentUid, 'comments/like.do?sessionMapID=${sessionMapID}&commentUid='+commentUid, - 1); + 1 + ); $( '#msglikebutton'+commentUid ).removeClass( 'fa-thumbs-up fa-faded' ).addClass( 'fa-thumbs-o-up' ); $( '#msglikebutton'+commentUid ).prop( 'onclick', null ); @@ -129,9 +131,11 @@ function dislikeEntry(commentUid) { - updateLike(commentUid, + updateLike( + commentUid, 'comments/dislike.do?sessionMapID=${sessionMapID}&commentUid='+commentUid, - -1); + -1 + ); $( '#msgdislikebutton'+commentUid ).removeClass( 'fa-thumbs-down fa-faded' ).addClass( 'fa-thumbs-o-down' ); $( '#msgdislikebutton'+commentUid ).prop( 'onclick', null ); $( '#msglikebutton'+commentUid ).css( "display", "none" );