Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
64004257
Commit
64004257
authored
Apr 01, 2015
by
gergely-ujvari
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2120 from hypothesis/bump-initial-load-count
Bump the number of annotations loaded per request to 200
parents
b10d7900
56c6c080
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
widget-controller-test.coffee
h/static/scripts/test/widget-controller-test.coffee
+1
-0
widget-controller.coffee
h/static/scripts/widget-controller.coffee
+3
-2
No files found.
h/static/scripts/test/widget-controller-test.coffee
View file @
64004257
...
...
@@ -75,6 +75,7 @@ describe 'WidgetController', ->
describe
'loadAnnotations'
,
->
it
'loads all annotation for a provider'
,
->
viewer
.
chunkSize
=
20
fakeCrossFrame
.
providers
.
push
{
entities
:
[
'http://example.com'
]}
$scope
.
$digest
()
loadSpy
=
fakeAnnotationMapper
.
loadAnnotations
...
...
h/static/scripts/widget-controller.coffee
View file @
64004257
...
...
@@ -14,11 +14,12 @@ module.exports = class WidgetController
$scope
.
isEmbedded
=
true
$scope
.
isStream
=
true
@
chunkSize
=
200
loaded
=
[]
_loadAnnotationsFrom
=
(
query
,
offset
)
-
>
_loadAnnotationsFrom
=
(
query
,
offset
)
=
>
queryCore
=
limit
:
20
limit
:
@
chunkSize
offset
:
offset
sort
:
'created'
order
:
'asc'
...
...
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