Make sure state is ignored when disabled

semantics-font
Svein-Tore Griff With 2015-04-13 20:30:40 +02:00
parent 0b609e882d
commit ba2355c2ec
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ H5P.init = function (target) {
state: previousState state: previousState
}; };
} }
else if (previousState === null) { else if (previousState === null && H5PIntegration.saveFreq) {
// Content has been reset. Display dialog. // Content has been reset. Display dialog.
delete contentData.contentUserData; delete contentData.contentUserData;
var dialog = new H5P.Dialog('content-user-data-reset', 'Data Reset', '<p>' + H5P.t('contentChanged') + '</p><p>' + H5P.t('startingOver') + '</p><div class="h5p-dialog-ok-button" tabIndex="0" role="button">OK</div>', $container); var dialog = new H5P.Dialog('content-user-data-reset', 'Data Reset', '<p>' + H5P.t('contentChanged') + '</p><p>' + H5P.t('startingOver') + '</p><div class="h5p-dialog-ok-button" tabIndex="0" role="button">OK</div>', $container);