- changed status to resolved
Uncaught ReferenceErrors: jQuery is not defined, $ is not defined
Issue #5
resolved
Previous repo issue not resolved:
When a Bootstrap Element is added in Moodle 3.2 or 3.4, the modal menu for the icon picker does not display from the Icon field. DevTools Console shows:
Uncaught ReferenceError: jQuery is not defined at fontawesome-iconpicker.min.js:1
and
Uncaught ReferenceError: $ is not defined at modedit.php?add=bootstrapelements&type=&course=46225§ion=1&return=0&sr=0:297
I patched this by adding
$formhtml .= '<script type="text/javascript" src="//code.jquery.com/jquery-2.2.1.min.js"></script>';
just before the script insertion for fontawesome-iconpicker.
Comments (1)
-
- Log in to comment
Fixed by https://bitbucket.org/covuni/moodle-mod_bootstrapelements/commits/0ba6b78a5b0e361718bb90d3aec59eb6828b653b