Fixed total check, batch period and regenerated puzzle.

This commit is contained in:
Russell Beattie
2013-03-13 02:36:10 -07:00
parent 8a3c1ffd05
commit c7c4199b79
3 changed files with 5 additions and 3 deletions

4
app.js
View File

@@ -254,7 +254,7 @@ App.PuzzleView = Backbone.View.extend({
intervalID: null,
guessing: false,
count: 0,
total: 7,
total: 0,
puzNum: 0,
data: null,
@@ -307,6 +307,8 @@ App.PuzzleView = Backbone.View.extend({
this.data = puzzles[puzNum];
this.total = puzzles[puzNum]['clues'].length;
var tpl = $('.puzzleTemplate').text();
var html = _.template(tpl, this.data);