add spinner for loading, initially static

This commit is contained in:
Brian Gough 2016-07-01 16:33:54 +01:00
parent c657a02db5
commit 0e550ac012
2 changed files with 5 additions and 2 deletions

View file

@ -3,7 +3,7 @@ define [
], (App) ->
# App = angular.module 'pdfPage', ['pdfHighlights']
App.directive 'pdfPage', ['$timeout', 'pdfHighlights', ($timeout, pdfHighlights) ->
App.directive 'pdfPage', ['$timeout', 'pdfHighlights', 'pdfSpinner', ($timeout, pdfHighlights, pdfSpinner) ->
{
require: '^pdfViewer',
template: '''

View file

@ -126,7 +126,10 @@ define [
element.canvas.addClass('pdfng-loading')
spinTimer = setTimeout () =>
@spinner.add(element.canvas)
@spinner.add(element.canvas, {static:true})
spinTimer = setTimeout () =>
@spinner.start(element.canvas)
, 100
, 100
completeRef = @complete