summaryrefslogtreecommitdiff
path: root/js/codeq/language.js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@araneo.org>2015-10-06 18:32:42 +0200
committerTimotej Lazar <timotej.lazar@araneo.org>2015-10-06 18:32:42 +0200
commit0b2485f393bcc47dcf895044c410b2c8784af432 (patch)
treec47ce3db5e8ff35dccfe714b6c0635c01f07ee6d /js/codeq/language.js
parent3f699e7460fb79bb0b48077dddc3359ee4b974c1 (diff)
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.
Diffstat (limited to 'js/codeq/language.js')
-rw-r--r--js/codeq/language.js10
1 files changed, 3 insertions, 7 deletions
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");
}
});
})();