From 38ae45aa959751d68a2c7185f2a43ae757e256f8 Mon Sep 17 00:00:00 2001 From: Matan Bar Yosef Date: Wed, 24 Jun 2015 13:13:58 +0300 Subject: [PATCH] - add choose project from dashboard --- templates/js/controllers/settingsController.js | 1 - templates/js/services/apiService.js | 13 +++++++++++-- templates/views/home.html | 15 +++++++++++---- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/templates/js/controllers/settingsController.js b/templates/js/controllers/settingsController.js index 35c9531..c1a7724 100644 --- a/templates/js/controllers/settingsController.js +++ b/templates/js/controllers/settingsController.js @@ -22,7 +22,6 @@ angular.module('SeHub') $scope.loadingData = false; $location.path('/register') } - }); $scope.isEditMode = false; diff --git a/templates/js/services/apiService.js b/templates/js/services/apiService.js index d6d1a03..f8a877e 100644 --- a/templates/js/services/apiService.js +++ b/templates/js/services/apiService.js @@ -47,8 +47,7 @@ service.factory('apiService', ['$http', function($http) { var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/courses/getAll/" + token; req = { method : "GET", - url : url, - data: token + url : url }; return $http(req); @@ -71,6 +70,16 @@ service.factory('apiService', ['$http', function($http) { }; return $http(req); }, + createMessage: function(token, payLoad){ + var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/courses/getCourseMessages/" + token; + req = { + method : "POST", + url : url, + data: payLoad + + }; + return $http(req); + }, getCourseMessages: function(token, courseName){ var url = (DEBUG ? "http://localhost:8080" : "http://se-hub.appspot.com") + "/api/courses/getCourseMessages/" + token + '/' + courseName; req = { diff --git a/templates/views/home.html b/templates/views/home.html index 39db020..dcce1b2 100644 --- a/templates/views/home.html +++ b/templates/views/home.html @@ -99,10 +99,17 @@ Clear All
- - - - +
+
+ + + + +
+
+ +
+