mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
add missing scope.$apply in pdf viewer event handlers
shows up now there are no apply's coming from the unsaved file check
This commit is contained in:
@@ -307,7 +307,7 @@ define [
|
||||
element.innerWidth()
|
||||
]
|
||||
scope.$emit 'flash-controls'
|
||||
#scope.$apply()
|
||||
scope.$apply()
|
||||
|
||||
scope.$on 'layout:main:resize', () ->
|
||||
# console.log 'GOT LAYOUT-MAIN-RESIZE EVENT'
|
||||
@@ -324,7 +324,7 @@ define [
|
||||
element.innerHeight(),
|
||||
element.innerWidth()
|
||||
]
|
||||
#scope.$apply()
|
||||
scope.$apply()
|
||||
|
||||
scope.$on 'pdf:error', (event, error) ->
|
||||
return if error == 'cancelled'
|
||||
|
||||
Reference in New Issue
Block a user