split intervention modal into 2 separate modals

This commit is contained in:
Thomas Hille
2017-03-01 11:58:16 +01:00
parent 695b8946f6
commit 5b50deb70d
4 changed files with 15 additions and 5 deletions

View File

@@ -606,8 +606,7 @@ configureEditors: function () {
}
setTimeout(function() {
$('#intervention-text').text(`Willst du eine Pause machen? 75th percentile: ${percentile75} and accumulated time: ${accumulatedWorkTimeUser}`);
$('#intervention-modal').modal('show');
$('#break-intervention-modal').modal('show');
$.ajax({
data: {
intervention_type: 'BreakIntervention'
@@ -618,8 +617,7 @@ configureEditors: function () {
}, timeUntilBreak);
setTimeout(function() {
$('#intervention-text').html("Möchtest du eine Frage stellen?");
$('#intervention-modal').modal('show');
$('#search-intervention-modal').modal('show');
$.ajax({
data: {
intervention_type: 'QuestionIntervention'