mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
17 lines
No EOL
417 B
CoffeeScript
17 lines
No EOL
417 B
CoffeeScript
define [
|
|
"base"
|
|
], (App) ->
|
|
App.controller "PdfViewToggleController", ($scope) ->
|
|
$scope.togglePdfView = () ->
|
|
if $scope.ui.view == "pdf"
|
|
$scope.ui.view = "editor"
|
|
else
|
|
$scope.ui.view = "pdf"
|
|
|
|
$scope.fileTreeClosed = false
|
|
$scope.$on "layout:main:resize", (e, state) ->
|
|
if state.west.initClosed
|
|
$scope.fileTreeClosed = true
|
|
else
|
|
$scope.fileTreeClosed = false
|
|
$scope.$apply() |