mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
30 lines
No EOL
715 B
CoffeeScript
30 lines
No EOL
715 B
CoffeeScript
define [
|
|
"base"
|
|
], (App) ->
|
|
App.controller "FeatureOnboardingController", ($scope, settings) ->
|
|
$scope.onboarding =
|
|
innerStep: 1
|
|
nSteps: 4
|
|
|
|
$scope.dismiss = () ->
|
|
$scope.ui.showCollabFeaturesOnboarding = false
|
|
|
|
$scope.gotoPrevStep = () ->
|
|
if $scope.onboarding.innerStep > 1
|
|
$scope.onboarding.innerStep--;
|
|
|
|
$scope.gotoNextStep = () ->
|
|
if $scope.onboarding.innerStep < 4
|
|
$scope.onboarding.innerStep++;
|
|
|
|
# handleKeypress = (e) ->
|
|
# if e.keyCode == 13
|
|
# if $scope.innerStep == 1
|
|
# $scope.turnCodeCheckOn()
|
|
# else
|
|
# $scope.dismiss()
|
|
|
|
# $(document).on "keypress", handleKeypress
|
|
|
|
# $scope.$on "$destroy", () ->
|
|
# $(document).off "keypress", handleKeypress |