From f540f02d2208a9808b75eae92933afdb98d49cf1 Mon Sep 17 00:00:00 2001 From: Matan Bar Yosef Date: Thu, 2 Jul 2015 22:15:50 +0300 Subject: [PATCH] - 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