TestControlsController.coffee 522 B

12345678910111213141516171819
  1. define [
  2. "base"
  3. "ace/ace"
  4. ], (App) ->
  5. App.controller "TestControlsController", ($scope) ->
  6. $scope.openProjectLinkedFileModal = () ->
  7. window.openProjectLinkedFileModal()
  8. $scope.openProjectOutputLinkedFileModal = () ->
  9. window.openProjectOutputLinkedFileModal()
  10. $scope.openLinkedFileModal = () ->
  11. window.openLinkedFileModal()
  12. $scope.richText = () ->
  13. current = window.location.toString()
  14. target = "#{current}#{if window.location.search then '&' else '?'}rt=true"
  15. window.location.href = target