From 6905bacd589950f2f84900fe7b501591bc8c4f68 Mon Sep 17 00:00:00 2001 From: manzerbredes Date: Sun, 31 Jan 2016 13:34:43 +0100 Subject: Change status controller and template --- client/js/controllers/status.js | 4 ++-- client/js/requests/identity.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client/js') diff --git a/client/js/controllers/status.js b/client/js/controllers/status.js index 01fdcc3..e4f119d 100644 --- a/client/js/controllers/status.js +++ b/client/js/controllers/status.js @@ -13,10 +13,10 @@ mainApp.controller('statusCtrl', function ($scope,$interval,$sce) $scope.username=status[1]; $scope.lastconnection=status[2]; if(status[0] == "1"){ - $scope.connection=$sce.trustAsHtml("Connection : Online"); + $scope.connection=$sce.trustAsHtml("Online"); } else{ - $scope.connection="Connection : Offline"; + $scope.connection=$sce.trustAsHtml("Offline"); } }, 2000); diff --git a/client/js/requests/identity.js b/client/js/requests/identity.js index 369ce85..d008abf 100644 --- a/client/js/requests/identity.js +++ b/client/js/requests/identity.js @@ -10,6 +10,6 @@ identity.fetchStatus = function(){ // TODO - return new Array("1", "user1", "25/02/2016"); + return new Array("0", "user1", "25/02/2016"); } \ No newline at end of file -- cgit v1.2.3