Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
M
moodle_mod-hvp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle_mod-hvp
Commits
42fcff64
Commit
42fcff64
authored
Apr 14, 2021
by
Thomas Marstrander
Browse files
Options
Downloads
Patches
Plain Diff
Ensure hub registration js is always loaded in head
Fixes issue 6 from Hub review april
parent
fefcdff7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
content_hub_registration.php
+1
-1
1 addition, 1 deletion
content_hub_registration.php
with
1 addition
and
1 deletion
content_hub_registration.php
+
1
−
1
View file @
42fcff64
...
...
@@ -42,12 +42,12 @@ $PAGE->set_heading(get_string('contenthub:settings:heading', 'mod_hvp'));
$settings
=
content_hub_service
::
get_registration_ui_settings
();
$PAGE
->
requires
->
data_for_js
(
'H5PSettings'
,
$settings
,
true
);
$PAGE
->
requires
->
js
(
new
moodle_url
(
'library/js/h5p-hub-registration.js'
),
true
);
$PAGE
->
requires
->
css
(
new
moodle_url
(
'library/styles/h5p.css'
));
$PAGE
->
requires
->
css
(
new
moodle_url
(
'library/styles/h5p-hub-registration.css'
));
echo
$OUTPUT
->
header
();
$PAGE
->
requires
->
js
(
new
moodle_url
(
'library/js/h5p-hub-registration.js'
));
echo
$OUTPUT
->
render_from_template
(
'mod_hvp/content_hub_registration'
,
[]);
$PAGE
->
requires
->
js_call_amd
(
'mod_hvp/contenthubregistration'
,
'init'
);
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment