Просмотр исходного кода

add word count to per-user container

Brian Gough 10 лет назад
Родитель
Сommit
8b15d40f8b

+ 3 - 1
services/web/public/coffee/ide/wordcount/controllers/WordCountModalController.coffee

@@ -4,12 +4,14 @@ define [
 	App.controller 'WordCountModalController', ($scope, $modalInstance, ide, $http) ->
 		$scope.status = 
 			loading:true
-			
+
+		perUserCompile = window.location?.search?.match(/isolated=true/)? or undefined
 		opts =
 			url:"/project/#{ide.project_id}/wordcount"
 			method:"GET"
 			params:
 				clsiserverid:ide.clsiServerId
+				isolated: perUserCompile
 		$http opts
 			.success (data) ->
 				$scope.status.loading = false