mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-26 03:40:48 +00:00
6f8b0c6e87
This reverts commit 66a0a7ff8b5b5081d86df333429cb0455221c81a.
21 lines
613 B
CoffeeScript
21 lines
613 B
CoffeeScript
define [
|
|
"base"
|
|
], (App) ->
|
|
App.controller "LinkSharingOnboardingController", ($scope, $timeout, event_tracking) ->
|
|
|
|
popover = angular.element('#onboarding-linksharing')
|
|
popover.hide()
|
|
|
|
$scope.dismiss = () ->
|
|
$scope.onboarding.linkSharing = 'dismissed'
|
|
event_tracking.sendMB "shown-linksharing-onboarding"
|
|
|
|
$scope.$on 'ide:loaded', () ->
|
|
shareBtn = angular.element('#shareButton')
|
|
offset = shareBtn.offset()
|
|
popover.show()
|
|
$scope.placement = 'bottom'
|
|
popover.css({
|
|
top: '' + (2) + 'px',
|
|
right: '' + (window.innerWidth - offset.left - (shareBtn.width() * 1.5) ) + 'px'
|
|
})
|