Commit 14c216b8 authored by Randall Leeds's avatar Randall Leeds

Revert "Move the infinite scroll into stream controller"

This reverts commit f8107e08c4f89fe41a2825693225609bcd5e17b4.
parent b33f2921
......@@ -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
......
......@@ -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)
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