Widget:UserExamQuery: Difference between revisions
Jump to navigation
Jump to search
Matt Pijoan (talk | contribs) No edit summary |
Matt Pijoan (talk | contribs) No edit summary |
||
Line 24: | Line 24: | ||
var timeEnd = ""; | var timeEnd = ""; | ||
var scoreString = ""; | var scoreString = ""; | ||
if(value.begin | if(value.begin != null){ | ||
timeBegin = new Date(value.begin * 1000).toString(); | timeBegin = new Date(value.begin * 1000).toString(); | ||
} | } | ||
if(value.end | if(value.end == null){ | ||
timeEnd = new Date (value.end * 1000).toString(); | timeEnd = new Date (value.end * 1000).toString(); | ||
scoreString = value.score + "%"; | scoreString = value.score + "%"; |