Merge pull request #117 from sagidayan/UI

- createClass - endDate is before startDate fixed
This commit is contained in:
Sagi Dayan 2015-07-02 22:43:41 +03:00
commit beb044013a
3 changed files with 5 additions and 7 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

View file

@ -62,7 +62,7 @@
<b>{{user.name}}</b> <b>{{user.name}}</b>
</div> </div>
<div> <div>
{{c.courseName}} {{courseObj.courseName}}
</div> </div>
</div> </div>
</div> </div>
@ -142,8 +142,8 @@
<md-card ng-repeat = "msg in messages"> <md-card ng-repeat = "msg in messages">
<div layout="column"> <div layout="column">
<div layout="row" layout-margin layout-padding> <div layout="row" layout-margin layout-padding>
<div flex="10" class="md-avatar"> <div flex="10">
<img ng-src="{{user.avatar_url}}" style="width:100%"> <img ng-src="{{user.avatar_url}}" class="roundUserAvatar" style = "width:70%;">
</div> </div>
<div flex> <div flex>
<div layout = "column"> <div layout = "column">