Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
ccf76b3b
Commit
ccf76b3b
authored
Dec 18, 2017
by
Mushtaq Ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code refactor
parent
e91481cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
cms/static/js/views/video_transcripts.js
+0
-6
No files found.
cms/static/js/views/video_transcripts.js
View file @
ccf76b3b
...
...
@@ -28,12 +28,10 @@ define(
*/
sortByValue
:
function
(
itemObject
)
{
var
sortedArray
=
[];
_
.
each
(
itemObject
,
function
(
value
,
key
)
{
// Push each JSON Object entry in array by [value, key]
sortedArray
.
push
([
value
,
key
]);
});
return
sortedArray
.
sort
();
},
...
...
@@ -43,12 +41,10 @@ define(
getTranscriptClientTitle
:
function
()
{
// Use a fixed length tranascript name.
var
clientTitle
=
this
.
clientVideoID
.
substring
(
0
,
20
);
// Remove video file extension for transcript title.
_
.
each
(
this
.
videoSupportedFileFormats
,
function
(
videoFormat
)
{
clientTitle
.
replace
(
videoFormat
,
''
);
});
return
clientTitle
;
},
...
...
@@ -93,8 +89,6 @@ define(
transcripts
:
this
.
transcripts
,
transcriptAvailableLanguages
:
this
.
sortByValue
(
this
.
transcriptAvailableLanguages
),
edxVideoID
:
this
.
edxVideoID
,
// Slice last 4 letters so that video filetype is not attached
// eg. eg. Harry-Potter.mp4 would give us eg. Harry-Potter
transcriptClientTitle
:
this
.
getTranscriptClientTitle
(),
transcriptDownloadFileFormat
:
TRANSCRIPT_DOWNLOAD_FILE_FORMAT
})
...
...
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