mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-63064 block_starredcourses: fix linting issues
This commit is contained in:
parent
5c6db8d956
commit
bdde16014d
@ -51,7 +51,7 @@ function(
|
||||
* @method renderCourses
|
||||
* @param {object} root The root element for the starred view.
|
||||
* @param {array} courses containing array of returned courses.
|
||||
* @return {promise} Resolved with HTML and JS strings
|
||||
* @returns {promise} Resolved with HTML and JS strings
|
||||
*/
|
||||
var renderCourses = function(root, courses) {
|
||||
if (courses.length > 0) {
|
||||
@ -59,7 +59,7 @@ function(
|
||||
courses: courses
|
||||
});
|
||||
} else {
|
||||
var nocoursesimg =root.find(SELECTORS.STARRED_COURSES_REGION_VIEW).attr('data-nocoursesimg');
|
||||
var nocoursesimg = root.find(SELECTORS.STARRED_COURSES_REGION_VIEW).attr('data-nocoursesimg');
|
||||
return Templates.render('block_starredcourses/no-courses', {
|
||||
nocoursesimg: nocoursesimg
|
||||
});
|
||||
@ -70,6 +70,7 @@ function(
|
||||
* Fetch user's starred courses and reload the content of the block.
|
||||
*
|
||||
* @param {object} root The root element for the starred view.
|
||||
* @returns {promise} The updated content for the block.
|
||||
*/
|
||||
var reloadContent = function(root) {
|
||||
var content = root.find(SELECTORS.STARRED_COURSES_REGION);
|
||||
|
Loading…
x
Reference in New Issue
Block a user