summaryrefslogtreecommitdiff
path: root/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/main.js')
-rw-r--r--js/main.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/main.js b/js/main.js
index 1f366cd..162809e 100644
--- a/js/main.js
+++ b/js/main.js
@@ -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);