From 0294885b098a374d8606e608a6ce0e24917c4a0c Mon Sep 17 00:00:00 2001 From: Juan Leyva Date: Thu, 30 Apr 2015 12:23:35 +0200 Subject: [PATCH] MOBILE-976 contents: Retrieve only sections information in Moodle 2.9 and onwards --- plugins/contents/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/contents/main.js b/plugins/contents/main.js index 22456f7c9..1b06b687e 100644 --- a/plugins/contents/main.js +++ b/plugins/contents/main.js @@ -41,7 +41,9 @@ define(templates,function (sectionsTpl, contentsTpl, folderTpl, mimeTypes) { $('a[href="#course/contents/' +courseId+ '"]').addClass('loading-row'); var data = { - 'courseid': courseId + 'courseid': courseId, + 'options[0][name]': 'excludecontents', + 'options[0][value]': true }; MM.moodleWSCall('core_course_get_contents', data, function(contents) {