Skip to content

Commit

Permalink
Refresh navigation after auto-save in interview
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Nov 19, 2023
1 parent 0485fe9 commit 6f0b734
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rdmo/projects/static/projects/js/project_questions/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,18 @@ angular.module('project_questions')
});
}

// update navigation
if (service.project.read_only !== true) {
resources.projects.query({
id: service.project.id,
detail_id: future.page.section.id,
detail_action: 'navigation'
}, function(response) {
console.log(response);
service.navigation = response
});
}

// check if we need to refresh the site
angular.forEach([service.page].concat(service.questionsets), function(questionset) {
angular.forEach(questionset.elements, function(element) {
Expand Down

0 comments on commit 6f0b734

Please sign in to comment.