summaryrefslogtreecommitdiff
path: root/js/codeq/python.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq/python.js')
-rw-r--r--js/codeq/python.js28
1 files changed, 1 insertions, 27 deletions
diff --git a/js/codeq/python.js b/js/codeq/python.js
index c28ee53..4402fa6 100644
--- a/js/codeq/python.js
+++ b/js/codeq/python.js
@@ -116,8 +116,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
codeq.globalStateMachine.register('python', {
'jqScreen': jqScreen,
- 'enter': function (ref, data) {//function (problemDef, commonDef, currentSolution) {//
-
+ 'enter': function (ref, data) {
codeq.loadProblemData(ref,data).then(function(problem){
//codeq.log.debug("then:"+JSON.stringify(problem));
enterFun(problem.generalProblemData,data.commonDef,problem.solution);
@@ -129,36 +128,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
history.back();//TODO test
})
.done();
-
-
- /*$('#navigation-problem_list').css('display', '');
- var navigationPhython = $("#navigation-python");
- navigationPhython.addClass("active");
- navigationPhython.css('display', '');
-
- jqScreen.css('display', '');//we have to show the screen now so the code editor shows its initial values correctly
- pythonHandler = createPythonHandler(problemDef, commonDef, currentSolution);
- subScreens = codeq.makeStateMachine(substates);
- subScreens.transition(jqDescription.data(stateNameTag));
-
- jqInfoButtons.on(transitionEventName, function (event) {
- subScreens.transition('info'); // set focus on the hints quadrant
- event.stopPropagation(); // don't allow the event to go on and trigger further transition
- });
- jqBtnRun.on(transitionEventName, function (event) {
- subScreens.transition('console'); // set focus on the hints quadrant
- event.stopPropagation(); // don't allow the event to go on and trigger further transition
- });
-
- jqAllQuadrants.on(transitionEventName, function () {
- subScreens.transition($(this).data(stateNameTag));
- });*/
},
'exit': function () {
jqAllButtons.off(); // unregister all event handlers
jqAllQuadrants.off();
jqScreen.css('display', 'none');
-// jqAllQuadrants.removeClass('transition');
pythonHandler.destroy();
pythonHandler = null;
subScreens.destroy();