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 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 @@
-
- +
+