From 3350e77134dd9d869271b3bea1cc1340bac98e9a Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Sat, 11 Feb 2012 00:01:43 -0500 Subject: [PATCH 1/4] Custom tags dir --HG-- branch : pmitros-mod-template From 6fa23e9084d05bd4a8b9edbf553232ed8f2eefe1 Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Mon, 13 Feb 2012 08:04:17 -0500 Subject: [PATCH 2/4] Custom tags link added --HG-- branch : pmitros-mod-template --- custom_tags | 1 + 1 file changed, 1 insertion(+) create mode 120000 custom_tags diff --git a/custom_tags b/custom_tags new file mode 120000 index 0000000000..bd9c88c4ae --- /dev/null +++ b/custom_tags @@ -0,0 +1 @@ +../data/custom_tags/ \ No newline at end of file From 73322a5e6ad4f5d3785432fd7c2467d6c3eff53a Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Sun, 19 Feb 2012 17:03:29 -0500 Subject: [PATCH 3/4] Capa problems handle case sensitivity and give better errors --HG-- branch : pmitros-capa-fixes --- problem.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/problem.js b/problem.js index e5bc56e3ab..547a1f0e81 100644 --- a/problem.js +++ b/problem.js @@ -13,11 +13,15 @@ function ${ id }_load() { postJSON('/modx/problem/${ id }/problem_check', submit_data, function(json) { - - if(json['success'] == 'syntax') - alert('Syntax error'); - else - ${ id }_load(); + switch(json.success) { + case 'incorrect': // Worked, but answer not + case 'correct': + ${ id }_load(); + //alert("!!"+json.success); + break; + default: + alert(json.success); + } }); log_event('problem_check', submit_data); }); From 2501b583057fea952f73edf9a53a8a3a1015855e Mon Sep 17 00:00:00 2001 From: Piotr Mitros Date: Mon, 20 Feb 2012 07:13:16 -0500 Subject: [PATCH 4/4] Removed unnecessary symlinks. WARNING: Must update and push data before deploying --HG-- branch : pmitros-mod-template --- Lab2A.html | 1 - custom_tags | 1 - schematic_tutorial.html | 1 - 3 files changed, 3 deletions(-) delete mode 120000 Lab2A.html delete mode 120000 custom_tags delete mode 120000 schematic_tutorial.html diff --git a/Lab2A.html b/Lab2A.html deleted file mode 120000 index 3eeed8320d..0000000000 --- a/Lab2A.html +++ /dev/null @@ -1 +0,0 @@ -../data/problems/Lab2A.html \ No newline at end of file diff --git a/custom_tags b/custom_tags deleted file mode 120000 index ec1dac8fbe..0000000000 --- a/custom_tags +++ /dev/null @@ -1 +0,0 @@ -../data/custom_tags \ No newline at end of file diff --git a/schematic_tutorial.html b/schematic_tutorial.html deleted file mode 120000 index da681ac006..0000000000 --- a/schematic_tutorial.html +++ /dev/null @@ -1 +0,0 @@ -../data/problems/schematic_tutorial.html \ No newline at end of file