diff options
Diffstat (limited to 'js/codeq/python.js')
-rw-r--r-- | js/codeq/python.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/codeq/python.js b/js/codeq/python.js index 893110b..05821e1 100644 --- a/js/codeq/python.js +++ b/js/codeq/python.js @@ -46,14 +46,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ .fail(function (reason) { codeq.log.error('Failed to obtain the problem definition: ' + reason, reason); alert('Failed to obtain the problem definition: ' + reason); - - history.back();//TODO test + history.back(); }) .done(); }, 'exit': function () { jqScreen.css('display', 'none'); - pythonHandler.destroy(); + if (pythonHandler) pythonHandler.destroy(); pythonHandler = null; $('#navigation-problem-list').css('display', 'none'); |