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;
}
init(); // Executing the function to initialize projects display
console.log("project created! not rly!! " + classId);
}).error(function(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)
{
@ -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

View file

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