- createClass - endDate is before startDate fixed

This commit is contained in:
Matan Bar Yosef 2015-07-02 22:15:50 +03:00
parent e666a1b042
commit f540f02d22
2 changed files with 2 additions and 4 deletions

View file

@ -45,7 +45,6 @@ angular.module('SeHub')
$scope.projectsEmpty = false; $scope.projectsEmpty = false;
} }
init(); // Executing the function to initialize projects display init(); // Executing the function to initialize projects display
console.log("project created! not rly!! " + classId);
}).error(function(err) { }).error(function(err) {
console.error("Error: " + err); console.error("Error: " + err);
}); });

View file

@ -74,8 +74,6 @@ angular.module('SeHub')
} }
}; };
console.log("Json here: " + $scope.chosenCampus);
console.log(jsonNewCourse);
apiService.createCourse(token, jsonNewCourse).success(function(data) apiService.createCourse(token, jsonNewCourse).success(function(data)
{ {
@ -88,7 +86,8 @@ angular.module('SeHub')
}); // Pop-up alert }); // Pop-up alert
}).error(function(err) }).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 else