Commit 58acae0f authored by Francois Hendriks's avatar Francois Hendriks
Browse files

index dropdowns

parent 5e4b280f
......@@ -2,7 +2,7 @@ angular.module('frontendDdltnApp.animate')
.controller('AnimateCtrl', function($scope, $window) {
$scope.ConcoursCollapsed = false;
$scope.ConcoursCollapsed = 'false';
$scope.Vie_en_ecoleCollapsed = false;
$scope.Vie_en_prepaCollapsed = false;
console.log("at least this works");
......@@ -18,23 +18,28 @@ angular.module('frontendDdltnApp.animate')
if (screenWidth >= 768) {
console.log("max-screen0");
element.on('mouseenter', function(event) {
scope.value = !scope.value;
console.log("it should be working");
console.log(scope.value);
scope.$emit('ConcoursCollapsed', scope.value);
scope.$apply(function () {
scope.value = !scope.value;
console.log("it should be working");
console.log(scope.value);
scope.$emit('ConcoursCollapsed', scope.value);
});
});
element.on('mouseleave', function(event) {
scope.$emit(scope.value, !scope.value);
scope.$apply(function() {
scope.$emit(scope.value, !scope.value);
});
});
console.log("max-screen");
}
else {
element.on('click', function(event) {
scope.$emit(scope.value, !scope.value);
scope.$apply(function() {
scope.$emit(scope.value, !scope.value);
});
});
console.log("min-screen");
};
scope.$apply();
}
}
})
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment