add auto_update_progress_bar property to jsPsych.init

This commit is contained in:
Josh de Leeuw 2017-06-10 21:31:59 -04:00 committed by KristinDiep
parent bf816b317b
commit 38ab6c16d8

View File

@ -72,6 +72,7 @@ window.jsPsych = (function() {
'preload_audio': [],
'exclusions': {},
'show_progress_bar': false,
'auto_update_progress_bar': true,
'auto_preload': true,
'show_preload_progress_bar': true,
'max_load_time': 60000,
@ -737,7 +738,7 @@ window.jsPsych = (function() {
var complete = timeline.advance();
// update progress bar if shown
if (opts.show_progress_bar === true) {
if (opts.show_progress_bar === true && opts.auto_update_progress_bar == true) {
updateProgressBar();
}