Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
b904f03c
Commit
b904f03c
authored
Dec 01, 2017
by
Cecilia Vela Gurovic
Committed by
Gerrit Code Review
Dec 01, 2017
Browse files
Merge "Bug 1735256: Make sure pagination offset is reset on new search"
parents
9430f362
71d1c2df
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/search/elasticsearch/index.php
View file @
b904f03c
...
...
@@ -149,7 +149,8 @@ jQuery(function ($) {
var
tagsonly
=
false
;
}
var
params
=
{
'query'
:
$
(
'#search_query'
)
.
val
(),
'tagsonly'
:
tagsonly
,
'mainfacetterm'
:
null
,
'limit'
:
$
(
'#setlimitselect'
)
.
val
(),
'extradata'
:
JSON
.
stringify
({
'page'
:
'index'
})};
var
params
=
{
'query'
:
$
(
'#search_query'
)
.
val
(),
'tagsonly'
:
tagsonly
,
'mainfacetterm'
:
null
,
'offset'
:
0
,
'limit'
:
$
(
'#setlimitselect'
)
.
val
(),
'extradata'
:
JSON
.
stringify
({
'page'
:
'index'
})};
p
.
sendQuery
(
params
);
event
.
preventDefault
();
});
...
...
Write
Preview
Supports
Markdown
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