From 7c65441c8e7c0933c032856568250bffb493542d Mon Sep 17 00:00:00 2001 From: Jason White Date: Thu, 18 Feb 2016 19:44:12 -0500 Subject: [PATCH 1/2] #180, better management of show* buttons --- .../main/webapp/WEB-INF/pages/main_new.jsp | 5 +++ .../js/goatApp/view/HelpControlsView.js | 41 ++++++++++--------- 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/webgoat-container/src/main/webapp/WEB-INF/pages/main_new.jsp b/webgoat-container/src/main/webapp/WEB-INF/pages/main_new.jsp index 8946fa162..57a9d54e6 100644 --- a/webgoat-container/src/main/webapp/WEB-INF/pages/main_new.jsp +++ b/webgoat-container/src/main/webapp/WEB-INF/pages/main_new.jsp @@ -102,6 +102,11 @@
+ + + + +

Hints

diff --git a/webgoat-container/src/main/webapp/js/goatApp/view/HelpControlsView.js b/webgoat-container/src/main/webapp/js/goatApp/view/HelpControlsView.js index 905ddbaa8..e9c354ce3 100644 --- a/webgoat-container/src/main/webapp/js/goatApp/view/HelpControlsView.js +++ b/webgoat-container/src/main/webapp/js/goatApp/view/HelpControlsView.js @@ -4,14 +4,14 @@ define(['jquery', function($,_,Backbone) { return Backbone.View.extend({ el:'#help-controls', //Check this - helpButtons: { - //TODO: move this into a template - showSource:$('