浏览代码

add word count to per-user container

Brian Gough 10 年之前
父节点
当前提交
8b15d40f8b
共有 1 个文件被更改,包括 3 次插入 和 1 次删除
  1. 3 1
      services/web/public/coffee/ide/wordcount/controllers/WordCountModalController.coffee

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

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