MDL-57139 tool_usertours: return in promises
authorDan Poltawski <dan@moodle.com>
Tue, 10 Jan 2017 17:54:17 +0000 (17:54 +0000)
committerDan Poltawski <dan@moodle.com>
Thu, 1 Jun 2017 09:27:59 +0000 (10:27 +0100)
admin/tool/usertours/amd/src/usertours.js

index e0d877d..4541f23 100644 (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);
         }
     };