Skip to content
This repository has been archived by the owner on Feb 9, 2020. It is now read-only.

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
wzpan committed Jul 11, 2017
1 parent dc14833 commit a816b84
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/markdown.js/0.5.0/markdown.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/timeago.js/3.0.2/timeago.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/spin.js/2.3.2/spin.min.js"></script>
<script src="http://onmw7y6f4.bkt.clouddn.com/comment-v1.0.6.7.js"></script>
<script src="http://onmw7y6f4.bkt.clouddn.com/comment-v1.0.6.8.js"></script>

<style>
.btn {
Expand Down
4 changes: 2 additions & 2 deletions comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ var _getRecentIssues = function _getRecentIssues(params, callback) {

var api_addr = type == 'github' ? github_api_addr : oschina_api_addr;
$.ajax({
url: api_addr + username + '/' + repo + '/issues\?per_page\=100\&sort\=created\&direction\=desc',
url: api_addr + username + '/' + repo + '/issues?per_page=100&sort=created&direction=desc',
dataType: 'json',
cache: false,
crossDomain: true,
Expand Down Expand Up @@ -298,7 +298,7 @@ var _getRecentComments = function _getRecentComments(params, callback) {

var api_addr = type == 'github' ? github_api_addr : oschina_api_addr;
$.ajax({
url: api_addr + username + '/' + repo + '/issues/comments\?per_page\=100\&sort\=created\&direction\=desc',
url: api_addr + username + '/' + repo + '/issues/comments?per_page=100&sort=created&direction=desc',
dataType: 'json',
cache: false,
crossDomain: true,
Expand Down
4 changes: 2 additions & 2 deletions src/comment-es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ var _getRecentIssues = function (params, callback) {
({ count } = params);
let api_addr = type == 'github' ? github_api_addr : oschina_api_addr;
$.ajax({
url: api_addr + username + '/' + repo + '/issues\?per_page\=100\&sort\=created\&direction\=desc',
url: api_addr + username + '/' + repo + '/issues?per_page=100&sort=created&direction=desc',
dataType: 'json',
cache: false,
crossDomain: true,
Expand Down Expand Up @@ -350,7 +350,7 @@ var _getRecentComments = function (params, callback) {
({ count } = params);
let api_addr = type == 'github' ? github_api_addr : oschina_api_addr;
$.ajax({
url: api_addr + username + '/' + repo + '/issues/comments\?per_page\=100\&sort\=created\&direction\=desc',
url: api_addr + username + '/' + repo + '/issues/comments?per_page=100&sort=created&direction=desc',
dataType: 'json',
cache: false,
crossDomain: true,
Expand Down

0 comments on commit a816b84

Please sign in to comment.