Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
h5p-editor-php-library
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
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
h5p-editor-php-library
Commits
3b4e867e
Unverified
Commit
3b4e867e
authored
5 years ago
by
Frode Petterson
Committed by
Thomas Marstrander
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix compatibility with newer jQuery versions
(cherry picked from commit
757f7053
)
parent
687c698e
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
scripts/h5peditor-av.js
+2
-2
2 additions, 2 deletions
scripts/h5peditor-av.js
scripts/h5peditor-editor.js
+1
-1
1 addition, 1 deletion
scripts/h5peditor-editor.js
scripts/h5peditor-group.js
+1
-1
1 addition, 1 deletion
scripts/h5peditor-group.js
with
4 additions
and
4 deletions
scripts/h5peditor-av.js
+
2
−
2
View file @
3b4e867e
...
@@ -119,8 +119,8 @@ H5PEditor.widgets.video = H5PEditor.widgets.audio = H5PEditor.AV = (function ($)
...
@@ -119,8 +119,8 @@ H5PEditor.widgets.video = H5PEditor.widgets.audio = H5PEditor.AV = (function ($)
'
</div>
'
;
'
</div>
'
;
var
html
=
H5PEditor
.
createFieldMarkup
(
this
.
field
,
imageHtml
,
id
);
var
html
=
H5PEditor
.
createFieldMarkup
(
this
.
field
,
imageHtml
,
id
);
var
$container
=
$
(
html
).
appendTo
(
$wrapper
);
var
$container
=
$
(
html
).
appendTo
(
$wrapper
);
this
.
$files
=
$container
.
children
(
'
.file
'
);
this
.
$files
=
$container
.
children
(
'
.file
'
);
this
.
$add
=
$container
.
children
(
'
.h5p-add-file
'
).
click
(
function
()
{
this
.
$add
=
$container
.
children
(
'
.h5p-add-file
'
).
click
(
function
()
{
self
.
$addDialog
.
addClass
(
'
h5p-open
'
);
self
.
$addDialog
.
addClass
(
'
h5p-open
'
);
...
@@ -587,7 +587,7 @@ H5PEditor.widgets.video = H5PEditor.widgets.audio = H5PEditor.AV = (function ($)
...
@@ -587,7 +587,7 @@ H5PEditor.widgets.video = H5PEditor.widgets.audio = H5PEditor.AV = (function ($)
const
id
=
'
av-upload-
'
+
C
.
getNextId
();
const
id
=
'
av-upload-
'
+
C
.
getNextId
();
return
'
<h3 id="
'
+
id
+
'
">
'
+
H5PEditor
.
t
(
'
core
'
,
type
===
'
audio
'
?
'
uploadAudioTitle
'
:
'
uploadVideoTitle
'
)
+
'
</h3>
'
+
return
'
<h3 id="
'
+
id
+
'
">
'
+
H5PEditor
.
t
(
'
core
'
,
type
===
'
audio
'
?
'
uploadAudioTitle
'
:
'
uploadVideoTitle
'
)
+
'
</h3>
'
+
'
<div class="h5p-file-drop-upload" tabindex="0" role="button" aria-labelledby="
'
+
id
+
'
">
'
+
'
<div class="h5p-file-drop-upload" tabindex="0" role="button" aria-labelledby="
'
+
id
+
'
">
'
+
'
<div class="h5p-file-drop-upload-inner
"/
>
'
+
'
<div class="h5p-file-drop-upload-inner
'
+
type
+
'
"></div
>
'
+
'
</div>
'
;
'
</div>
'
;
case
'
InputLinkURL
'
:
case
'
InputLinkURL
'
:
...
...
This diff is collapsed.
Click to expand it.
scripts/h5peditor-editor.js
+
1
−
1
View file @
3b4e867e
...
@@ -230,7 +230,7 @@ ns.Editor = function (library, defaultParams, replace, iframeLoaded) {
...
@@ -230,7 +230,7 @@ ns.Editor = function (library, defaultParams, replace, iframeLoaded) {
// Need to put this after the above replaceAll(), since that one makes Safari
// Need to put this after the above replaceAll(), since that one makes Safari
// 11 trigger a load event for the iframe
// 11 trigger a load event for the iframe
$iframe
.
load
(
load
);
$iframe
.
on
(
'
load
'
,
load
);
// Populate iframe with the H5P Editor
// Populate iframe with the H5P Editor
// (should not really be done until 'load', but might be here in case the iframe is reloaded?)
// (should not really be done until 'load', but might be here in case the iframe is reloaded?)
...
...
This diff is collapsed.
Click to expand it.
scripts/h5peditor-group.js
+
1
−
1
View file @
3b4e867e
...
@@ -313,7 +313,7 @@ ns.Group.prototype.setSummary = function (summary) {
...
@@ -313,7 +313,7 @@ ns.Group.prototype.setSummary = function (summary) {
// Parse html
// Parse html
var
summaryTextNode
=
ns
.
$
.
parseHTML
(
summary
);
var
summaryTextNode
=
ns
.
$
.
parseHTML
(
summary
);
if
(
summaryTextNode
!==
null
)
{
if
(
summaryTextNode
!==
null
&&
summaryTextNode
.
length
)
{
summaryText
=
summaryTextNode
[
0
].
nodeValue
;
summaryText
=
summaryTextNode
[
0
].
nodeValue
;
}
}
...
...
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
register
or
sign in
to comment