Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show a warning when no LMS is connected #535

Merged
merged 2 commits into from
Apr 26, 2018

Conversation

georgestagg
Copy link
Contributor

Fixes #529. There is now a variable Numbas.storage.lmsConnected telling us
whether a true SCORM connection to an LMS exists.

The front page uses this variable to show a warning message explaining that
marks and answers are not saved when there is no SCORM connection.

Fixes numbas#529. There is now a variable Numbas.storage.lmsConnected telling us
whether a true SCORM connection to an LMS exists.

The front page uses this variable to show a warning message explaining that
marks and answers are not saved when there is no SCORM connection.
@@ -20,12 +20,14 @@ var scorm = Numbas.storage.scorm = {};
*/
var SCORMStorage = scorm.SCORMStorage = function()
{
Numbas.storage.lmsConnected = true;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to have this as false to begin with, and set it to true if the SCORM API is found.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact, this could be set to false in the prototype of SCORMStorage, which would let you add a documentation tag.

Sets lmsConnected to false by default, setting it to true only when a SCORM connection is established.
@christianp christianp merged commit 82de229 into numbas:marking-algorithms Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants