Skip to content

Commit

Permalink
refs #26 Add a model for the summary data.
Browse files Browse the repository at this point in the history
  • Loading branch information
truedat101 committed Nov 10, 2013
1 parent fd2f549 commit 5ec7831
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion static/js/smileiqmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ function sessionsModel() {
self.iqsessions = ko.observableArray([]);
}

function sessionSummaryModel() {
var self = this;
self.title = ko.observable("");
self.sessionName = ko.observable("");
self.date = ko.observable("");
self.groupname = ko.observable("");
self.teachername = ko.observable("");
self._id = ko.observable("");
self.iqset = ko.observableArray([]);
self.results = ko.observable("");
self.sessionStats = ko.observable("");
}
// XXX Need to decide if we will use this
var iqModel = function(question, answer1, answer2, answer3, answer4, rightanswer, picurl) {
var self = this;
Expand All @@ -78,7 +90,8 @@ var iqModel = function(question, answer1, answer2, answer3, answer4, rightanswer
var globalViewModel = {
iqsetSummary: new iqsetSummaryModel(),
iqsetCollection: new iqsetsModel(),
sessionCollection: new sessionsModel()
sessionCollection: new sessionsModel(),
sessionSummary: new sessionSummaryModel()
};

function createIQSetUploader() {
Expand Down

0 comments on commit 5ec7831

Please sign in to comment.