From 85f9346001c5851ff46e96cf53ecd03129218677 Mon Sep 17 00:00:00 2001 From: jcwimer Date: Wed, 2 Mar 2016 15:54:38 +0000 Subject: [PATCH] Removed console.log on frontend tournamentsController, also fixed frontend syntax errors in tournamentsController and tournamentsService --- frontend/app/js/tournaments-controller.js | 5 +---- frontend/app/js/tournaments-service.js | 2 +- frontend/app/static/favicon.ico | Bin 1150 -> 1406 bytes 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/app/js/tournaments-controller.js b/frontend/app/js/tournaments-controller.js index 92bf66f..1efcb89 100644 --- a/frontend/app/js/tournaments-controller.js +++ b/frontend/app/js/tournaments-controller.js @@ -4,18 +4,15 @@ app.controller("tournamentsController", function($scope, tournamentsService) { tournamentsService.getAllTournaments().then(function(data) { //this will execute when the //AJAX call completes. - console.log(data); $scope.allTournaments = data; }); $scope.searchTournaments = function (){ - console.log("Tried search"); tournamentsService.searchTournaments($scope.searchTerms).then(function(data) { //this will execute when the //AJAX call completes. - console.log(data); $scope.allTournaments = data; }); - } + }; }); \ No newline at end of file diff --git a/frontend/app/js/tournaments-service.js b/frontend/app/js/tournaments-service.js index 6f2e0e8..4e426bd 100644 --- a/frontend/app/js/tournaments-service.js +++ b/frontend/app/js/tournaments-service.js @@ -22,7 +22,7 @@ app.factory('tournamentsService', function($http){ }).then(function successCallback(response) { // this callback will be called asynchronously // when the response is available - return response.data + return response.data; }, function errorCallback(response) { // called asynchronously if an error occurs // or server returns response with an error status. diff --git a/frontend/app/static/favicon.ico b/frontend/app/static/favicon.ico index 70de606140dd3f4a4eb64e224e50675a20db8a33..bd63207474d4a6847e69d5ea3a8b494496140b93 100644 GIT binary patch literal 1406 zcmeH{%TH556vltIZz#~xLV5VYH$Fgxdt~KfY2r$ve}M~hW&Af>m|zLGK#jUm0*UU_ zO%3r;T^Pek6SOfAV`6V_YkILQ?RAE0wX$6#7ionVHmn>@cAnCsEBv@Vihch) z)!a)eAD@w*9#eN6r}p(7#lRVL)0rtH~ zYTs6vYhz#zuJz@P!dKp~(AL>x#lFaYI<1pk5Ruwg>lKj6>@HtRnS zK;^NS1D5ORXoso6puc_n3NivF4mZQq)wKg;E|MHrjjxY4Of8rOD}d_f