Skip to content

Commit 782fb53

Browse files
committed
Change .ajax call to .post
1 parent 19f7715 commit 782fb53

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

junction/templates/proposals/detail/comments.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,8 @@ <h5 class="text-muted clear-margin vote-count">
133133
e.preventDefault();
134134
var that = $(this);
135135
var url = that.attr('data-url');
136-
$.ajax({
137-
method: "POST",
138-
url: url})
139-
.done(function( msg ){
136+
$.post(url, {}, function(result){
137+
console.log(result);
140138
location.reload(true);
141139
});
142140
});

0 commit comments

Comments
 (0)