From c7c664ad4a80bf66c228019f06005dded170ab06 Mon Sep 17 00:00:00 2001 From: Jason White Date: Wed, 10 May 2017 15:27:19 +0100 Subject: [PATCH] polling for scoreboard added (appseceu) --- .../main/resources/static/js/goatApp/view/ScoreboardView.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/webgoat-container/src/main/resources/static/js/goatApp/view/ScoreboardView.js b/webgoat-container/src/main/resources/static/js/goatApp/view/ScoreboardView.js index 4dd93606c..fb72d16aa 100644 --- a/webgoat-container/src/main/resources/static/js/goatApp/view/ScoreboardView.js +++ b/webgoat-container/src/main/resources/static/js/goatApp/view/ScoreboardView.js @@ -22,9 +22,7 @@ function($, //this.$el.html('test'); var t = _.template(this.template); this.$el.html(t({'rankings':this.collection.toJSON()})); - //TODO: add template (table) to iterate over ... - //this.collection.toJSON(); << put that in the template data - //TODO: set up next poll here with listenToOnce + setTimeout(this.pollData.bind(this), 5000); }, pollData: function() {