diff options
author | Adam Coldrick <adam@sotk.co.uk> | 2015-09-28 23:38:44 +0100 |
---|---|---|
committer | Adam Coldrick <adam@sotk.co.uk> | 2015-09-29 00:41:38 +0100 |
commit | 1706932763c3fee0fdab5b129f3783ce02619436 (patch) | |
tree | d5a8652943e792122fe34622b3dd91f590a6243d | |
parent | f0efaf3393fe5875dd5efe7612c4d9ae2207861b (diff) | |
download | ciat-ui-1706932763c3fee0fdab5b129f3783ce02619436.tar.gz |
Click builder to close details
-rw-r--r-- | js/main.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -74,7 +74,11 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval) if (e) { e.stopPropagation(); } - $scope.selected = step; + if ($scope.selected === step) { + $scope.selected = null; + } else { + $scope.selected = step; + } }; function cancelRefresh() { |