MDL-67473 mod_lti: deeplinking multiple support

AMOS BEGIN
 CPY [contentitem_help,mod_lti],[contentitem_deeplinking_help,mod_lti]
AMOS END
This commit is contained in:
Claude Vervoort 2019-12-06 13:47:54 -05:00
parent 5486b031ee
commit 957da4b564
15 changed files with 553 additions and 123 deletions

View file

@ -97,8 +97,10 @@
};
require(['mod_lti/contentitem'], function(contentitem) {
contentitem.init(contentItemUrl, postData, function() {
M.mod_lti.editor.toggleGradeSection();
contentitem.init(contentItemUrl, postData, function(returnData) {
if (!returnData.multiple) {
M.mod_lti.editor.toggleGradeSection();
}
});
});
}