public: new carousels in pubic interface: teams and exercices
+ fix autocarousel directive
This commit is contained in:
parent
68e5c4cd2b
commit
1dcebc4eca
5 changed files with 66 additions and 13 deletions
|
@ -24,11 +24,13 @@ angular.module("FICApp")
|
|||
}
|
||||
}
|
||||
}])
|
||||
.directive('autocarousel', [function() {
|
||||
.directive('autocarousel', ['$timeout', function($timeout) {
|
||||
return {
|
||||
restrict: 'A',
|
||||
link : function() {
|
||||
$('#carouselThemes').carousel();
|
||||
link : function($scope, $element) {
|
||||
$timeout(function() {
|
||||
$($element[0]).carousel();
|
||||
});
|
||||
}
|
||||
}
|
||||
}]);
|
||||
|
|
|
@ -125,7 +125,7 @@ angular.module("FICApp")
|
|||
.controller("DataController", function($scope, $http, $rootScope, $interval) {
|
||||
var refreshScene = function() {
|
||||
$http.get(window.location.pathname.replace(".html", ".json")).then(function(response) {
|
||||
if ($scope.lastpublicsetag != undefined && $scope.lastpublicsetag == response.headers().etag)
|
||||
if ($scope.lastpublicetag != undefined && $scope.lastpublicetag == response.headers().etag)
|
||||
return;
|
||||
$scope.lastpublicetag = response.headers().etag;
|
||||
|
||||
|
|
Reference in a new issue