issue #268 fixed

parent 26b7eb4d
......@@ -160,7 +160,7 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
$scope.showFreeCategory = !scene.categories;
scene.name = $translate.instant(scene.name);
$scope.viewingScene = scene;
scene.pictos.forEach(placePicto);
$scope.loadingPictos = false;
//setTimeout(function () { $scope.$apply(); });
......@@ -492,6 +492,9 @@ dashboardControllers.controller('StudentCollectionsCtrl', function StudentCollec
.success(function (studentPicto) {
$scope.showScene($scope.viewingScene.id);
//Reload selectedCategory data
$scope.selectedCategory = studentPicto;
// notify
io.socket.post('/stu/vocabulary', {
action: 'update_category',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment