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
f3b9ea43
Commit
f3b9ea43
authored
Oct 05, 2017
by
Mushtaq Ali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Send transcript credentials data to backend
Add Cielo Username - EDUCATOR-1456
parent
6634b92c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
8 deletions
+25
-8
cms/static/js/spec/views/course_video_settings_spec.js
+0
-0
cms/static/js/views/course_video_settings.js
+22
-2
cms/static/sass/views/_video-upload.scss
+3
-6
No files found.
cms/static/js/spec/views/course_video_settings_spec.js
View file @
f3b9ea43
This diff is collapsed.
Click to expand it.
cms/static/js/views/course_video_settings.js
View file @
f3b9ea43
...
...
@@ -606,6 +606,7 @@ function($, Backbone, _, gettext, moment, ViewUtils, HtmlUtils, StringUtils, Tra
validateOrganizationCredentials
:
function
()
{
var
$OrganizationApiSecretWrapperEl
,
$OrganizationUsernameWrapperEl
,
isValid
=
true
,
$OrganizationApiKeyWrapperEl
=
this
.
$el
.
find
(
'.'
+
this
.
selectedProvider
+
'-api-key-wrapper'
);
...
...
@@ -630,6 +631,14 @@ function($, Backbone, _, gettext, moment, ViewUtils, HtmlUtils, StringUtils, Tra
}
else
{
this
.
clearPreferenceErrorState
(
$OrganizationApiSecretWrapperEl
);
}
}
else
{
$OrganizationUsernameWrapperEl
=
this
.
$el
.
find
(
'.'
+
this
.
selectedProvider
+
'-username-wrapper'
);
if
(
$OrganizationUsernameWrapperEl
.
find
(
'input'
).
val
()
===
''
)
{
isValid
=
false
;
this
.
addErrorState
(
$OrganizationUsernameWrapperEl
);
}
else
{
this
.
clearPreferenceErrorState
(
$OrganizationUsernameWrapperEl
);
}
}
return
isValid
;
...
...
@@ -673,14 +682,25 @@ function($, Backbone, _, gettext, moment, ViewUtils, HtmlUtils, StringUtils, Tra
},
saveOrganizationCredentials
:
function
()
{
var
self
=
this
;
var
self
=
this
,
username
,
apiSecret
,
apiKey
=
this
.
$el
.
find
(
'.'
+
this
.
selectedProvider
+
'-api-key'
).
val
();
// First clear response status if present already
this
.
clearResponseStatus
();
// TODO: Send actual organization credentials.
if
(
this
.
selectedProvider
===
THREE_PLAY_MEDIA
)
{
apiSecret
=
this
.
$el
.
find
(
'.'
+
this
.
selectedProvider
+
'-api-secret'
).
val
();
}
else
{
username
=
this
.
$el
.
find
(
'.'
+
this
.
selectedProvider
+
'-username'
).
val
();
}
$
.
postJSON
(
self
.
transcriptCredentialsHandlerUrl
,
{
provider
:
self
.
selectedProvider
,
api_key
:
apiKey
,
api_secret_key
:
apiSecret
,
username
:
username
,
global
:
false
// Do not trigger global AJAX error handler
},
function
()
{
self
.
$el
.
find
(
'.organization-credentials-wrapper'
).
hide
();
...
...
cms/static/sass/views/_video-upload.scss
View file @
f3b9ea43
...
...
@@ -86,13 +86,10 @@
.organization-credentials-content
{
margin-top
:
(
$baseline
*
1
.6
);
.org-credentials-wrapper
input
{
width
:
75%
;
margin
:
(
$baseline
*
0
.8
)
0
;
}
.action-update-org-credentials
{
margin-top
:
(
$baseline
*
1
.6
);
width
:
65%
;
margin-top
:
(
$baseline
*
0
.8
);
display
:
inline-block
;
}
}
.transcript-preferance-wrapper
{
...
...
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