diff options
author | Adam Coldrick <adam@sotk.co.uk> | 2015-09-26 18:20:06 +0100 |
---|---|---|
committer | Adam Coldrick <adam@sotk.co.uk> | 2015-09-28 20:24:57 +0100 |
commit | f83d048b53a9c2ec858ee44ddb8a781732dff72d (patch) | |
tree | 2acb9115086a593d5d382e36c163e092dd807c8e /js/main.js | |
parent | d4febb6aca849067d4347548e04ad245ab5a32c0 (diff) | |
download | ciat-ui-f83d048b53a9c2ec858ee44ddb8a781732dff72d.tar.gz |
Allow selection
Diffstat (limited to 'js/main.js')
-rw-r--r-- | js/main.js | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -48,6 +48,14 @@ app.controller('VisualisationController', function($scope, $http, $q, $interval) }); } + $scope.selected = null; + $scope.select = function(step, e) { + if (e) { + e.stopPropagation(); + } + $scope.selected = step; + }; + function cancelRefresh() { if (angular.isDefined(autorefresh)) { $interval.cancel(autorefresh); |