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

Fixed unable to go to next slide bug.

parent b1c4b537
No related branches found
No related tags found
No related merge requests found
......@@ -87,6 +87,7 @@ class Default
if (question.HasValidAnswer())
{
this._activeAnsweSets(this._activeAnsweSets() + 1);
ExperimentManager.SaveQuestionAnswer(question.Id, question.Answer(), success =>
{
if (!success) question.HasValidAnswer(false);
......
......@@ -122,6 +122,7 @@ define(["require", "exports", "knockout", "CockpitPortal", "Managers/Navigation"
if (response.Error.Fullname !== "Chaos.Cockpit.Core.Core.Exceptions.ValidationException")
throw new Error("Failed to save answer: " + response.Error.Message);
}
else
callback(true);
});
};
......
......@@ -176,6 +176,7 @@ class Experiment
if (response.Error.Fullname !== "Chaos.Cockpit.Core.Core.Exceptions.ValidationException")
throw new Error("Failed to save answer: " + response.Error.Message);
}
else
callback(true);
});
}
......
......@@ -5,7 +5,7 @@
<meta charset="utf-8" />
<title>Cockpit Experiments</title>
<script type="text/javascript">
var CacheBuster = 25;
var CacheBuster = 26;
</script>
</head>
<body>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment