Ready to publish solutions

This commit is contained in:
nemunaire 2016-10-13 20:16:42 +02:00
parent 1129bd68be
commit b618d4f886
3 changed files with 28 additions and 5 deletions

View file

@ -92,7 +92,7 @@ angular.module("FICApp")
}
}
})
.controller("DataController", function($scope, $http, $rootScope, $timeout) {
.controller("DataController", function($sce, $scope, $http, $rootScope, $timeout) {
var actMenu = function() {
if ($scope.my && $scope.themes) {
angular.forEach($scope.themes, function(theme, key) {
@ -139,6 +139,11 @@ angular.module("FICApp")
}
$http.get("/my.json").success(function(my) {
$scope.my = my;
angular.forEach($scope.my.exercices, function(exercice, eid) {
if (exercice.video_uri) {
exercice.video_uri = $sce.trustAsResourceUrl(exercice.video_uri);
}
});
actMenu();
});
console.log("refresh!");