Fix show page bug.
This commit is contained in:
parent
379f26c771
commit
e4c0ee53ed
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue