diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-02-26 17:03:53 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-02-26 17:03:53 +0100 |
commit | af6f38e8ad6bfcc5410646ee070d05f8ab0783db (patch) | |
tree | 40160ac2c80040495cdee714aeb462e5fa65437f /js/codeq/problem_list.js | |
parent | 108ca120edfbb3ae8ed1da08a9f80553f3325d13 (diff) |
Use a consistent naming style for DOM IDs
Diffstat (limited to 'js/codeq/problem_list.js')
-rw-r--r-- | js/codeq/problem_list.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/codeq/problem_list.js b/js/codeq/problem_list.js index e5ca36e..21d376b 100644 --- a/js/codeq/problem_list.js +++ b/js/codeq/problem_list.js @@ -16,7 +16,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ (function(){ "use strict"; - var jqScreen = $('#screen_problem_list'), + var jqScreen = $('#screen-problem-list'), languageCache = {}, // keyed by language identifier: processed data about languages translationCache = [], // keys are autogenerated in ta(), a value is a dictionary of translations of a translation key for every language problemCache = {}, // problem data cache, 3-level, keyed by: language, problem group, and problem identifier @@ -428,7 +428,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ 'enter': function(language){ var data = languageCache[language]; // language data - $("#navigation-problem_list").addClass("active").css('display', ''); + $("#navigation-problem-list").addClass("active").css('display', ''); if (!language) language = currentLanguage; // This happens when we hit this with the back button if (language !== currentLanguage) { @@ -453,7 +453,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ }, 'exit' : function(){ jqScreen.css('display', 'none'); - $('#navigation-problem_list').css('display', 'none').removeClass("active"); + $('#navigation-problem-list').css('display', 'none').removeClass("active"); } }); })(); |