overleaf/services/web/public/coffee/ide/test-controls/controllers/TestControlsController.coffee
Shane Kilkelly 60ca298db3 WIP
2018-06-22 13:08:13 +01:00

19 lines
522 B
CoffeeScript

define [
"base"
"ace/ace"
], (App) ->
App.controller "TestControlsController", ($scope) ->
$scope.openProjectLinkedFileModal = () ->
window.openProjectLinkedFileModal()
$scope.openProjectOutputLinkedFileModal = () ->
window.openProjectOutputLinkedFileModal()
$scope.openLinkedFileModal = () ->
window.openLinkedFileModal()
$scope.richText = () ->
current = window.location.toString()
target = "#{current}#{if window.location.search then '&' else '?'}rt=true"
window.location.href = target