私有动态BUG修改
This commit is contained in:
parent
d74924ff67
commit
c26e2a9acc
|
@ -9,6 +9,7 @@ app.controller('CourseNoticeController', ['$scope', '$http', '$routeParams', 'au
|
|||
urlName: 'course_notice',
|
||||
loadCallback: function(data){
|
||||
$scope.news = data.data;
|
||||
$scope.is_public = data.is_public;
|
||||
},
|
||||
replyCallback: function(){
|
||||
}
|
||||
|
|
|
@ -17,6 +17,7 @@ app.controller('DiscussionController', ['$scope', '$http', '$routeParams', 'auth
|
|||
if (page == 0){
|
||||
$scope.discussion = data.data;
|
||||
$scope.page = 0;
|
||||
$scope.is_public = data.is_public;
|
||||
}
|
||||
else{
|
||||
$scope.discussion.all_children = $scope.discussion.all_children.concat(data.data.all_children);
|
||||
|
|
|
@ -17,6 +17,7 @@ app.controller('HomeworkController', ['$scope', '$http', '$routeParams', 'auth',
|
|||
if (page == 0){
|
||||
$scope.homework = data.data;
|
||||
$scope.page = 0;
|
||||
$scope.is_public = data.is_public;
|
||||
}
|
||||
else{
|
||||
$scope.homework.all_children = $scope.homework.all_children.concat(data.data.all_children);
|
||||
|
|
|
@ -9,6 +9,7 @@ app.controller('IssueController', ['$scope', '$http', '$routeParams', 'auth', 'c
|
|||
loadCallback: function(data){
|
||||
console.log(data);
|
||||
$scope.issue = data.data;
|
||||
$scope.is_public = data.is_public;
|
||||
},
|
||||
replyCallback: function(){
|
||||
}
|
||||
|
|
|
@ -16,6 +16,7 @@ app.controller('JournalsController', ['$scope', '$http', '$routeParams', 'auth',
|
|||
if (page == 0){
|
||||
$scope.message = data.data;
|
||||
$scope.page = 0;
|
||||
$scope.is_public = data.is_public;
|
||||
}
|
||||
else{
|
||||
$scope.message.all_children = $scope.message.all_children.concat(data.data.all_children);
|
||||
|
|
Loading…
Reference in New Issue