MDL-57139 tool_usertours: return in promises

This commit is contained in:
Dan Poltawski 2017-01-10 17:54:17 +00:00
parent e58ecca175
commit 7efdac5fc3

View File

@ -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);
}
};