diff --git a/models/Courseware.js b/models/Courseware.js index 68e816a01c3..7baa6cc5656 100644 --- a/models/Courseware.js +++ b/models/Courseware.js @@ -14,7 +14,8 @@ var coursewareSchema = new mongoose.Schema({ difficulty: String, description: Array, tests: Array, - challengeSeed: String + challengeSeed: Array, + challengeType: Number // 0 = html, 1 = javascript only, 2 = video }); module.exports = mongoose.model('Courseware', coursewareSchema); \ No newline at end of file diff --git a/public/js/lib/coursewares/coursewaresFramework.js b/public/js/lib/coursewares/coursewaresFramework.js index ba06db1afcf..759e0526a61 100644 --- a/public/js/lib/coursewares/coursewaresFramework.js +++ b/public/js/lib/coursewares/coursewaresFramework.js @@ -44,6 +44,8 @@ var allTests = ''; }); })(); + + var coursewareTests = "