From 0b2485f393bcc47dcf895044c410b2c8784af432 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 6 Oct 2015 18:32:42 +0200 Subject: Rename state 'problem' to problem_list Remove the Language element from the navbar and have "CodeQ" (logo TBD) send user to the language-selection page. --- js/codeq/language.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'js/codeq/language.js') diff --git a/js/codeq/language.js b/js/codeq/language.js index 0893e33..b861560 100644 --- a/js/codeq/language.js +++ b/js/codeq/language.js @@ -7,14 +7,12 @@ jqProlog = $('#choose-prolog'), jqPython = $('#choose-python'), jqRobot = $('#choose-robot'), - chooseProlog = function () {codeq.globalStateMachine.transition('problem', 'prolog');}, - choosePython = function () {codeq.globalStateMachine.transition('problem', 'python');}, - chooseRobot = function () {codeq.globalStateMachine.transition('problem', 'robot');}; + chooseProlog = function () {codeq.globalStateMachine.transition('problem_list', 'prolog');}, + choosePython = function () {codeq.globalStateMachine.transition('problem_list', 'python');}, + chooseRobot = function () {codeq.globalStateMachine.transition('problem_list', 'robot');}; codeq.globalStateMachine.register('language',{ 'enter': function(){ - $("#navigation-language").addClass("active").css('display', ''); - jqScreen.css('display', ''); jqProlog.on('click', chooseProlog); jqPython.on('click', choosePython); @@ -25,8 +23,6 @@ jqPython.off(); jqRobot.off(); jqScreen.css('display', 'none'); - - $('#navigation-language').css('display', 'none').removeClass("active"); } }); })(); -- cgit v1.2.1