mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 07:39:02 +02:00
Merge pull request #3809 from overleaf/sk-history-exception-fix
Remove references to `this` in history toolbar GitOrigin-RevId: 7e3e970317d94ab694ccd2ccd5bb89fee9cb72b6
This commit is contained in:
committed by
Copybot
parent
ae0805e684
commit
036018d65c
@@ -109,13 +109,13 @@ export default App.controller(
|
||||
.then(function(entity) {
|
||||
if (type === 'doc') {
|
||||
ide.editorManager.openDoc(entity)
|
||||
this.ide.$timeout(() => {
|
||||
this.$scope.$broadcast('history:toggle')
|
||||
ide.$timeout(() => {
|
||||
$scope.$broadcast('history:toggle')
|
||||
}, 0)
|
||||
} else if (type === 'file') {
|
||||
ide.binaryFilesManager.openFile(entity)
|
||||
this.ide.$timeout(() => {
|
||||
this.$scope.$broadcast('history:toggle')
|
||||
ide.$timeout(() => {
|
||||
$scope.$broadcast('history:toggle')
|
||||
}, 0)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user