From ba2355c2ecb8a48b294d4bbeea04246f803aee6a Mon Sep 17 00:00:00 2001 From: Svein-Tore Griff With Date: Mon, 13 Apr 2015 20:30:40 +0200 Subject: [PATCH] Make sure state is ignored when disabled --- js/h5p.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/h5p.js b/js/h5p.js index 8f06199..4fa1486 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -90,7 +90,7 @@ H5P.init = function (target) { state: previousState }; } - else if (previousState === null) { + else if (previousState === null && H5PIntegration.saveFreq) { // Content has been reset. Display dialog. delete contentData.contentUserData; var dialog = new H5P.Dialog('content-user-data-reset', 'Data Reset', '

' + H5P.t('contentChanged') + '

' + H5P.t('startingOver') + '

OK
', $container);