- createClass - endDate is before startDate fixed
This commit is contained in:
parent
e666a1b042
commit
f540f02d22
2 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue