Skip to content

Commit 97e6835

Browse files
committed
url props
1 parent 1a5dad1 commit 97e6835

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

django_comments/templates/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
loadCommentsFromServer: function() {
1313
$.ajax({
14-
url : '',
14+
url : this.props.url,
1515
dataType : 'json',
1616
success : function(data) {
1717
console.log('in - '+ data);
@@ -20,7 +20,7 @@
2020
}.bind(this),
2121
error : function(xhr, status, err) {
2222
console.log('out');
23-
console.error(' ', status, err);
23+
console.error(this.props.url, status, err);
2424
}.bind(this)
2525
});
2626
},

0 commit comments

Comments
 (0)