mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
MDL-57139 survey: fix promise return
This commit is contained in:
parent
a1ce326669
commit
f8587005cb
@ -49,11 +49,10 @@ define(['jquery', 'core/str', 'core/modal_factory', 'core/notification'], functi
|
||||
if (form.find('input:radio[data-survey-default="true"]:checked').length !== 0) {
|
||||
e.preventDefault();
|
||||
// Display the modal error.
|
||||
modalPromise.then(function(modal) {
|
||||
return modalPromise.then(function(modal) {
|
||||
modal.show();
|
||||
return;
|
||||
return false;
|
||||
});
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user