Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
c26ca701
Commit
c26ca701
authored
Jul 07, 2016
by
Matthew Taylor
Committed by
GitHub
Jul 07, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #687 from mewtaylor/issue/gh-686-language
Fix GH-686: Add language to search / explore api requests
parents
ad8b43a5
7f466aac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
src/views/explore/explore.jsx
src/views/explore/explore.jsx
+1
-0
src/views/search/search.jsx
src/views/search/search.jsx
+1
-0
No files found.
src/views/explore/explore.jsx
View file @
c26ca701
...
@@ -64,6 +64,7 @@ var Explore = injectIntl(React.createClass({
...
@@ -64,6 +64,7 @@ var Explore = injectIntl(React.createClass({
uri
:
'
/search/
'
+
this
.
props
.
itemType
+
uri
:
'
/search/
'
+
this
.
props
.
itemType
+
'
?limit=
'
+
this
.
props
.
loadNumber
+
'
?limit=
'
+
this
.
props
.
loadNumber
+
'
&offset=
'
+
this
.
state
.
offset
+
'
&offset=
'
+
this
.
state
.
offset
+
'
&language=
'
+
this
.
props
.
intl
.
locale
+
qText
qText
},
function
(
err
,
body
)
{
},
function
(
err
,
body
)
{
if
(
!
err
)
{
if
(
!
err
)
{
...
...
src/views/search/search.jsx
View file @
c26ca701
...
@@ -61,6 +61,7 @@ var Search = injectIntl(React.createClass({
...
@@ -61,6 +61,7 @@ var Search = injectIntl(React.createClass({
uri
:
'
/search/
'
+
this
.
props
.
tab
+
uri
:
'
/search/
'
+
this
.
props
.
tab
+
'
?limit=
'
+
this
.
props
.
loadNumber
+
'
?limit=
'
+
this
.
props
.
loadNumber
+
'
&offset=
'
+
this
.
state
.
offset
+
'
&offset=
'
+
this
.
state
.
offset
+
'
&language=
'
+
this
.
props
.
intl
.
locale
+
termText
termText
},
function
(
err
,
body
)
{
},
function
(
err
,
body
)
{
var
loadedSoFar
=
this
.
state
.
loaded
;
var
loadedSoFar
=
this
.
state
.
loaded
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment