Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
MOOC packages by hacklab
django-courses-legacy
Commits
38f2c283
Commit
38f2c283
authored
4 years ago
by
Matheus Miranda
Browse files
Options
Download
Plain Diff
Merge branch 'develop' into 'master'
Removing back and adding quotes in link_video See merge request
!107
parents
c3dafe0e
cd2e6319
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
courses_legacy/static/js/admin/new-course/controllers.js
courses_legacy/static/js/admin/new-course/controllers.js
+2
-2
No files found.
courses_legacy/static/js/admin/new-course/controllers.js
View file @
38f2c283
...
...
@@ -35,7 +35,7 @@
Course
.
get
({
id
:
$scope
.
course_id
},
function
(
course
){
if
(
course
.
intro_video
)
{
youtubePlayerApi
.
videoId
=
course
.
intro_video
.
youtube_id
;
$scope
.
link_video
=
"
//www.youtube.com/embed/
${
course.intro_video.youtube_id
}
?rel=0&showinfo=0&autohide=1&theme=light&wmode=opaque
"
;
$scope
.
link_video
=
"
//www.youtube.com/embed/
"
+
course
.
intro_video
.
youtube_id
+
"
?rel=0&showinfo=0&autohide=1&theme=light&wmode=opaque
"
;
}
document
.
title
=
'
Curso: {0}
'
.
format
(
course
.
name
);
$scope
.
addThumb
=
!
course
.
thumbnail_url
;
...
...
@@ -94,7 +94,7 @@
if
(
$scope
.
course
.
intro_video
===
'
undefined
'
||
$scope
.
course
.
intro_video
===
null
)
$scope
.
course
.
intro_video
=
{};
$scope
.
course
.
intro_video
.
youtube_id
=
result
[
2
];
$scope
.
link_video
=
`
//www.youtube.com/embed/
${
$scope
.
course
.
intro_video
.
youtube_id
}
?rel=0&showinfo=0&autohide=1&theme=light&wmode=opaque
`
;
$scope
.
link_video
=
"
//www.youtube.com/embed/
"
+
$scope
.
course
.
intro_video
.
youtube_id
+
"
?rel=0&showinfo=0&autohide=1&theme=light&wmode=opaque
"
;
}
};
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment