Commit b33f2921 authored by Randall Leeds's avatar Randall Leeds

Move the infinite scroll into stream controller

parent dc9ed66b
......@@ -420,15 +420,6 @@ 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
......
......@@ -36,6 +36,15 @@ 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)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment