From 8b15d40f8b969b5dc59fac4e64a9f0d317bcbdca Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 27 Jun 2016 12:41:50 +0100 Subject: [PATCH] add word count to per-user container --- .../ide/wordcount/controllers/WordCountModalController.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/wordcount/controllers/WordCountModalController.coffee b/services/web/public/coffee/ide/wordcount/controllers/WordCountModalController.coffee index e880a25eef..2336de614d 100644 --- a/services/web/public/coffee/ide/wordcount/controllers/WordCountModalController.coffee +++ b/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