Skip to content

Commit e47a244

Browse files
author
unbug
committed
switch ajax to jsonp
1 parent c1ac2a9 commit e47a244

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

‎cache.manifest‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# Build: 20160726103936
2+
# Build: 20160730053815
33

44
CACHE:
55
resources/fonts/Dressedless_Three.svg

‎index.html‎

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

‎static/app/src/AppBundle.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,10 +1067,10 @@
10671067
lastVal = val;
10681068
lastVal && $.ajax({
10691069
type: 'GET',
1070-
//dataType: 'jsonp',
1071-
dataType: 'json',
1072-
url: 'https://searchcode.com/api/codesearch_I/' + (langQuery ? ('?' + langQuery) : ''),
1073-
//url: 'https://searchcode.com/api/jsonp_codesearch_I/' + (langQuery ? ('?' + langQuery) : ''),
1070+
dataType: 'jsonp',
1071+
//dataType: 'json',
1072+
//url: 'https://searchcode.com/api/codesearch_I/' + (langQuery ? ('?' + langQuery) : ''),
1073+
url: 'https://searchcode.com/api/jsonp_codesearch_I/' + (langQuery ? ('?' + langQuery) : ''),
10741074
data: {
10751075
q: lastVal,
10761076
p: page,

‎static/app/src/model/SearchcodeModel.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ module.exports = new function () {
112112
lastVal = val;
113113
lastVal && $.ajax({
114114
type: 'GET',
115-
//dataType: 'jsonp',
116-
dataType: 'json',
117-
url: 'https://searchcode.com/api/codesearch_I/' + (langQuery ? ('?' + langQuery) : ''),
118-
//url: 'https://searchcode.com/api/jsonp_codesearch_I/' + (langQuery ? ('?' + langQuery) : ''),
115+
dataType: 'jsonp',
116+
//dataType: 'json',
117+
//url: 'https://searchcode.com/api/codesearch_I/' + (langQuery ? ('?' + langQuery) : ''),
118+
url: 'https://searchcode.com/api/jsonp_codesearch_I/' + (langQuery ? ('?' + langQuery) : ''),
119119
data: {
120120
q: lastVal,
121121
p: page,

0 commit comments

Comments
 (0)