Fix show page bug.
This commit is contained in:
parent
379f26c771
commit
e4c0ee53ed
|
@ -152,7 +152,7 @@
|
||||||
$(function(){
|
$(function(){
|
||||||
$('.annc-comment-div .btn-comment').click(function(){
|
$('.annc-comment-div .btn-comment').click(function(){
|
||||||
$.ajax({
|
$.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()},
|
data : {"comment" : $(this).parents('.annc-comment-div').find('.announcement-comment').html()},
|
||||||
dataType : "json",
|
dataType : "json",
|
||||||
type : "get",
|
type : "get",
|
||||||
|
|
Loading…
Reference in New Issue