summaryrefslogtreecommitdiff
path: root/js/codeq/problem_list.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/codeq/problem_list.js')
-rw-r--r--js/codeq/problem_list.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/codeq/problem_list.js b/js/codeq/problem_list.js
index 645a58a..1384066 100644
--- a/js/codeq/problem_list.js
+++ b/js/codeq/problem_list.js
@@ -15,6 +15,7 @@ You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
(function(){
+ "use strict";
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
@@ -310,7 +311,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
showAttempts = function (languageData, attempts) {
var i;
for (i = 0; i < languageData.refs.length; i++) {
- ref = languageData.refs[i];
+ var ref = languageData.refs[i];
if (ref.id in attempts) {
jqScreen.find('a.problem-'+i)
.removeClass('solved attempted')