From f540f02d2208a9808b75eae92933afdb98d49cf1 Mon Sep 17 00:00:00 2001 From: Matan Bar Yosef Date: Thu, 2 Jul 2015 22:15:50 +0300 Subject: [PATCH 1/2] - createClass - endDate is before startDate fixed --- templates/js/controllers/classController.js | 1 - templates/js/controllers/myClassesController.js | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/js/controllers/classController.js b/templates/js/controllers/classController.js index cfa7a54..00c985f 100644 --- a/templates/js/controllers/classController.js +++ b/templates/js/controllers/classController.js @@ -45,7 +45,6 @@ angular.module('SeHub') $scope.projectsEmpty = false; } init(); // Executing the function to initialize projects display - console.log("project created! not rly!! " + classId); }).error(function(err) { console.error("Error: " + err); }); diff --git a/templates/js/controllers/myClassesController.js b/templates/js/controllers/myClassesController.js index 2591b3c..9fabe73 100644 --- a/templates/js/controllers/myClassesController.js +++ b/templates/js/controllers/myClassesController.js @@ -74,8 +74,6 @@ angular.module('SeHub') } }; - console.log("Json here: " + $scope.chosenCampus); - console.log(jsonNewCourse); apiService.createCourse(token, jsonNewCourse).success(function(data) { @@ -88,7 +86,8 @@ angular.module('SeHub') }); // Pop-up alert }).error(function(err) { - console.log(err); + $mdDialog.show($mdDialog.alert().title('Error Creating Class').content(err) + .ariaLabel('Create Class alert dialog').ok('Try Again!').targetEvent()); // Pop-up alert }); } else From 36fab377b5186278a56265dcda2c068d6690c297 Mon Sep 17 00:00:00 2001 From: Matan Bar Yosef Date: Thu, 2 Jul 2015 22:33:31 +0300 Subject: [PATCH 2/2] - sendMessage course in msg added ((still in progress - at the moment showing the course u select on drop down)) --- templates/views/home.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/views/home.html b/templates/views/home.html index ebc3f1f..44820cf 100644 --- a/templates/views/home.html +++ b/templates/views/home.html @@ -62,7 +62,7 @@ {{user.name}}
- {{c.courseName}} + {{courseObj.courseName}}
@@ -142,8 +142,8 @@
-
- +
+