|
@@ -128,7 +128,8 @@ define [
|
|
|
ide.binaryFilesManager = new BinaryFilesManager(ide, $scope)
|
|
ide.binaryFilesManager = new BinaryFilesManager(ide, $scope)
|
|
|
|
|
|
|
|
# Set up labels
|
|
# Set up labels
|
|
|
- $scope.$on 'doc:labels:updated', labels.onDocLabelsUpdated
|
|
|
|
|
|
|
+ ide.socket.on 'broadcastDocLabels', (data) ->
|
|
|
|
|
+ labels.onBroadcastDocLabels(data)
|
|
|
$scope.$on 'entity:deleted', labels.onEntityDeleted
|
|
$scope.$on 'entity:deleted', labels.onEntityDeleted
|
|
|
$scope.$on 'file:upload:complete', labels.fileUploadComplete
|
|
$scope.$on 'file:upload:complete', labels.fileUploadComplete
|
|
|
$timeout () ->
|
|
$timeout () ->
|
|
@@ -179,7 +180,4 @@ define [
|
|
|
# User can append ?ft=somefeature to url to activate a feature toggle
|
|
# User can append ?ft=somefeature to url to activate a feature toggle
|
|
|
ide.featureToggle = location?.search?.match(/^\?ft=(\w+)$/)?[1]
|
|
ide.featureToggle = location?.search?.match(/^\?ft=(\w+)$/)?[1]
|
|
|
|
|
|
|
|
- ide.socket.on 'docLabelsUpdated', (data) ->
|
|
|
|
|
- $scope.$broadcast 'doc:labels:updated', data
|
|
|
|
|
-
|
|
|
|
|
angular.bootstrap(document.body, ["SharelatexApp"])
|
|
angular.bootstrap(document.body, ["SharelatexApp"])
|