Skip to content
Snippets Groups Projects
Commit accabcda authored by Jacob Poul Richardt's avatar Jacob Poul Richardt
Browse files

Questions are now updated on events.

parent 948e270f
Branches master
No related tags found
No related merge requests found
......@@ -105,6 +105,10 @@ define(["require", "exports", "knockout", "Components/Players/Audio/AudioInfo",
DateTime: new Date()
};
this._events.push(event);
this.TriggerAnswerUpdate();
};
QuestionsBase.prototype.TriggerAnswerUpdate = function () {
this.SetAnswer(this.GetAnswer());
};
QuestionsBase.prototype.CloneEvent = function (event) {
return {
......
......@@ -159,6 +159,13 @@ class QuestionsBase<T> implements IQuestionViewModel
};
this._events.push(event);
this.TriggerAnswerUpdate();
}
protected TriggerAnswerUpdate():void
{
this.SetAnswer(this.GetAnswer());
}
private CloneEvent(event:CockpitPortal.IQuestionEvent):CockpitPortal.IQuestionEvent
......
......@@ -5,7 +5,7 @@
<meta charset="utf-8" />
<title>Cockpit Experiments</title>
<script type="text/javascript">
var CacheBuster = 34;
var CacheBuster = 35;
</script>
</head>
<body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment