summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Coldrick <adam@sotk.co.uk>2015-09-28 23:38:44 +0100
committerAdam Coldrick <adam@sotk.co.uk>2015-09-29 00:41:38 +0100
commit1706932763c3fee0fdab5b129f3783ce02619436 (patch)
treed5a8652943e792122fe34622b3dd91f590a6243d
parentf0efaf3393fe5875dd5efe7612c4d9ae2207861b (diff)
downloadciat-ui-1706932763c3fee0fdab5b129f3783ce02619436.tar.gz
Click builder to close details
-rw-r--r--js/main.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/js/main.js b/js/main.js
index c8f6bb8..2ed73db 100644
--- a/js/main.js
+++ b/js/main.js
@@ -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() {