mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-05 02:36:52 +00:00
add spinner for loading, initially static
This commit is contained in:
parent
c657a02db5
commit
0e550ac012
2 changed files with 5 additions and 2 deletions
|
@ -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: '''
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue