From b2810baff09a653b3abd3908f67396a69532bcb4 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 18 Aug 2014 18:12:28 +0300 Subject: add a user setting field; does nothing except set graph.user --- scripts/buttons.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/buttons.js') diff --git a/scripts/buttons.js b/scripts/buttons.js index fce8fa0d..69067bdc 100644 --- a/scripts/buttons.js +++ b/scripts/buttons.js @@ -36,3 +36,11 @@ $('.load').click(function(){ $('.deliverabletest').click(function(){ deliverableTest(); }); + +$('.set-user').click(function() { + $('.set-user').hide(); + $('.set-user-form').show(); + $('.set-user-form').submit(function() { + graph.set_user($('.set-user-input').val()); + }) +}); -- cgit v1.3.1