mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-57139 tool_usertours: return in promises
This commit is contained in:
parent
e58ecca175
commit
7efdac5fc3
@ -68,6 +68,7 @@ function(ajax, BootstrapTour, $, templates, str, log, notification) {
|
||||
templates.render('tool_usertours/tourstep', {})
|
||||
).then(function(response, template) {
|
||||
usertours.startBootstrapTour(tourId, template[0], response.tourconfig);
|
||||
return;
|
||||
}).fail(notification.exception);
|
||||
},
|
||||
|
||||
@ -213,6 +214,7 @@ function(ajax, BootstrapTour, $, templates, str, log, notification) {
|
||||
if (response.startTour) {
|
||||
usertours.fetchTour(response.startTour);
|
||||
}
|
||||
return;
|
||||
}).fail(notification.exception);
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user