私有动态BUG修改

This commit is contained in:
yuanke 2016-08-11 14:09:41 +08:00
parent d74924ff67
commit c26e2a9acc
5 changed files with 5 additions and 0 deletions

View File

@ -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(){
}

View File

@ -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);

View File

@ -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);

View File

@ -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(){
}

View File

@ -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);