Skip to content

Commit 350318b

Browse files
author
Davert
committed
redesign
1 parent d7279a0 commit 350318b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

js/contributors.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
$(document).ready(function () {
2-
$.get('https://api.github.com/repos/Codeception/Codeception/contributors', '',function(data,status, jqXHR) {
32

4-
if (data === undefined) {
5-
data = $.parseJSON(jqXHR.responseText);
6-
}
3+
$.ajax({
4+
type: 'GET',
5+
url: 'https://api.github.com/repos/Codeception/Codeception/contributors',
6+
dataType: 'jsonp',
7+
success: function(data,status) {
78

89
$.each(data, function (key, contributor) {
910
var image = "<img src=\"" + contributor.avatar_url + "\" width=\"48\" height=\"48\">";
@@ -16,6 +17,6 @@ $(document).ready(function () {
1617
$('#contributors').append(link);
1718
});
1819
$('#contributors').append('<p style="clear: both">Join us, fork Codeception and submit your pull requests!</p>');
19-
} , 'json');
20-
20+
}
21+
});
2122
});

0 commit comments

Comments
 (0)