Fix show page bug.

This commit is contained in:
BoHung Chiu 2022-05-23 14:48:39 +08:00
parent 379f26c771
commit e4c0ee53ed
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@
$(function(){
$('.annc-comment-div .btn-comment').click(function(){
$.ajax({
url: "<%= "/xhr/announcements/#{params[:slug]}-#{params[:uid]}/comment" %>",
url: "<%= "/xhr/announcements/#{URI.encode(params[:slug])}-#{params[:uid]}/comment" %>",
data : {"comment" : $(this).parents('.annc-comment-div').find('.announcement-comment').html()},
dataType : "json",
type : "get",