From 3c21c5d97510807c34a12077e9a8bc236dab1db1 Mon Sep 17 00:00:00 2001 From: chrqls Date: Thu, 19 Jun 2014 18:09:21 +0200 Subject: [PATCH] [#39] Removing useless code and better UI when deleting a question --- lib/smile/game.js | 38 -------------------------------------- static/js/smileteacher.js | 9 +-------- static/smile-teacher.html | 12 ++++++++---- 3 files changed, 9 insertions(+), 50 deletions(-) diff --git a/lib/smile/game.js b/lib/smile/game.js index 79816f6..27c6169 100644 --- a/lib/smile/game.js +++ b/lib/smile/game.js @@ -41,44 +41,6 @@ Game.prototype.setRatingMetadata = function setRatingMetadata(metadata) { } }; -/* OLD METHOD TO RETAKE. - NOT CALLED ANYMORE: TO DELETE SOON *//* -Game.prototype.retake_dirty = function retake_dirty() { - - this.questionRatings = {}; - this.questionCorrectCountMap = {}; - for (var key in this.students.currentStudents) { - this.students.currentStudents[key].retake(); - } - - //var oldGame = this; - //this = new Game(); - //this.students = oldGame.students; - //this.studentsWrapper = new StudentsWrapper(oldGame.students); - - // Removing questions of past messages - var sizeQuestions = this.questions.numberOfQuestions; - - for (var i=0; i
-
+
+
+ +
@@ -529,10 +532,11 @@

- Delete + - - Back