Fix invocation of (edx.)HtmlUtils.ensureHtml

Without this the following JS error occurs:

    Uncaught ReferenceError: HtmlUtils is not defined
        at toggleSubmitButton (login:658)
This commit is contained in:
Silvio Tomatis
2019-11-07 00:28:35 +01:00
parent d6099e08fd
commit 12cf50b0a9

View File

@@ -116,7 +116,7 @@ from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_j
removeClass('is-disabled').
attr('aria-disabled', false).
prop('disabled', false).
html(HtmlUtils.ensureHtml(content).toString());
html(edx.HtmlUtils.ensureHtml(content).toString());
}
else {
$submitButton.