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
aae392a5
Commit
aae392a5
authored
Aug 15, 2017
by
McKenzie Welter
Committed by
GitHub
Aug 15, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #15786 from edx/McKenzieW/learner-1721
Send program UUID to ecommerce for program purchase tracking
parents
5e274202
790c3e5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
+9
-1
lms/static/js/learner_dashboard/views/program_details_view.js
+9
-1
No files found.
lms/static/js/learner_dashboard/views/program_details_view.js
View file @
aae392a5
...
...
@@ -52,17 +52,25 @@
this
.
render
();
},
getUrl
:
function
(
base
,
programData
)
{
if
(
programData
.
uuid
)
{
return
base
+
'&bundle='
+
encodeURIComponent
(
programData
.
uuid
);
}
return
base
;
},
render
:
function
()
{
var
completedCount
=
this
.
completedCourseCollection
.
length
,
inProgressCount
=
this
.
inProgressCourseCollection
.
length
,
remainingCount
=
this
.
remainingCourseCollection
.
length
,
totalCount
=
completedCount
+
inProgressCount
+
remainingCount
,
buyButtonUrl
=
this
.
getUrl
(
this
.
options
.
urls
.
buy_button_url
,
this
.
options
.
programData
),
data
=
{
totalCount
:
totalCount
,
inProgressCount
:
inProgressCount
,
remainingCount
:
remainingCount
,
completedCount
:
completedCount
,
completeProgramURL
:
this
.
options
.
urls
.
buy_button_u
rl
completeProgramURL
:
buyButtonU
rl
};
data
=
$
.
extend
(
data
,
this
.
programModel
.
toJSON
());
HtmlUtils
.
setHtml
(
this
.
$el
,
this
.
tpl
(
data
));
...
...
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