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
14c216b8
Commit
14c216b8
authored
Sep 12, 2014
by
Randall Leeds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Move the infinite scroll into stream controller"
This reverts commit f8107e08c4f89fe41a2825693225609bcd5e17b4.
parent
b33f2921
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
controllers.coffee
h/static/scripts/controllers.coffee
+9
-0
streamsearch.coffee
h/static/scripts/streamsearch.coffee
+0
-9
No files found.
h/static/scripts/controllers.coffee
View file @
14c216b8
...
...
@@ -420,6 +420,15 @@ class App
if
current
and
next
.
$
$route
.
originalPath
is
'/a/:id'
$scope
.
reloadAnnotations
()
$scope
.
loadMore
=
(
number
)
->
unless
$scope
.
updater
?
then
return
sockmsg
=
messageType
:
'more_hits'
moreHits
:
number
$scope
.
updater
.
then
(
sock
)
->
sock
.
send
(
JSON
.
stringify
(
sockmsg
))
$scope
.
authTimeout
=
->
delete
annotator
.
ongoing_edit
$scope
.
ongoingHighlightSwitch
=
false
...
...
h/static/scripts/streamsearch.coffee
View file @
14c216b8
...
...
@@ -36,15 +36,6 @@ class StreamSearch
$scope
.
openDetails
=
(
annotation
)
->
$scope
.
loadMore
=
(
number
)
->
unless
$scope
.
updater
?
then
return
sockmsg
=
messageType
:
'more_hits'
moreHits
:
number
$scope
.
updater
.
then
(
sock
)
->
sock
.
send
(
JSON
.
stringify
(
sockmsg
))
angular
.
module
(
'h.streamsearch'
,
imports
,
configure
)
.
controller
(
'StreamSearchController'
,
StreamSearch
)
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