From af6f38e8ad6bfcc5410646ee070d05f8ab0783db Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Fri, 26 Feb 2016 17:03:53 +0100 Subject: Use a consistent naming style for DOM IDs --- js/codeq/prolog.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'js/codeq/prolog.js') diff --git a/js/codeq/prolog.js b/js/codeq/prolog.js index 111ea68..0d2f9d5 100644 --- a/js/codeq/prolog.js +++ b/js/codeq/prolog.js @@ -16,7 +16,7 @@ along with this program. If not, see . */ (function() { "use strict"; - var jqScreen = $('#screen_prolog'), // the screen container element + var jqScreen = $('#screen-prolog'), // the screen container element // quadrants jqCode = jqScreen.find('.block2'), jqConsole = jqScreen.find('.block3'), @@ -29,7 +29,7 @@ along with this program. If not, see . */ prologHandler; var enterFun = function(problemDef, commonDef, currentSolution) { - $('#navigation-problem_list').css('display', ''); + $('#navigation-problem-list').css('display', ''); var navigationProlog = $("#navigation-prolog"); navigationProlog.addClass("active"); navigationProlog.css('display', ''); @@ -61,7 +61,7 @@ along with this program. If not, see . */ prologHandler.destroy(); prologHandler = null; - $('#navigation-problem_list').css('display', 'none'); + $('#navigation-problem-list').css('display', 'none'); var navigationProlog = $("#navigation-prolog"); navigationProlog.removeClass("active"); navigationProlog.css('display', 'none'); @@ -260,7 +260,7 @@ along with this program. If not, see . */ return { destroy: function () { codeq.comms.endProblem().done(); - $('#screen_prolog .title').text('');//empty the title text + $('#screen-prolog .title').text(''); //empty the title text jqAllButtons.off(); editor.off('change'); activityHandler.queueTrace({'typ': 'close'}); -- cgit v1.2.1