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
OpenEdx
edx-platform
Commits
c47be87c
Commit
c47be87c
authored
Oct 04, 2017
by
Robert Raposa
Committed by
Dillon Dumesnil
Oct 31, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix upgrade event.
LEARNER-2026
parent
edd10d70
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
lms/static/js/dashboard/legacy.js
+7
-5
No files found.
lms/static/js/dashboard/legacy.js
View file @
c47be87c
...
@@ -43,6 +43,11 @@
...
@@ -43,6 +43,11 @@
// a `track` call whenever a bound link is clicked. Usually the page would change before
// a `track` call whenever a bound link is clicked. Usually the page would change before
// `track` had time to execute; `trackLink` inserts a small timeout to give the `track`
// `track` had time to execute; `trackLink` inserts a small timeout to give the `track`
// call enough time to fire. The clicked link element is passed to `generateProperties`.
// call enough time to fire. The clicked link element is passed to `generateProperties`.
// NOTE: This is a duplicate of the 'edx.course.enrollment.upgrade.clicked' event with
// location learner_dashboard. This bi event is being left in for now because:
// 1. I don't know who is relying on it and it is viewable separately in GA.
// 2. The other event doesn't yet have the benefit of the timeout of trackLink(), so
// the other event might under-report as compared to this event.
window
.
analytics
.
trackLink
(
upgradeButtonLinks
,
'edx.bi.dashboard.upgrade_button.clicked'
,
generateProperties
);
window
.
analytics
.
trackLink
(
upgradeButtonLinks
,
'edx.bi.dashboard.upgrade_button.clicked'
,
generateProperties
);
// Track clicks of the "verify now" button.
// Track clicks of the "verify now" button.
...
@@ -116,11 +121,8 @@
...
@@ -116,11 +121,8 @@
$
(
'#failed-verification-banner'
).
addClass
(
'is-hidden'
);
$
(
'#failed-verification-banner'
).
addClass
(
'is-hidden'
);
});
});
$
(
'#upgrade-to-verified'
).
click
(
function
(
event
)
{
$
(
'.action-upgrade'
).
click
(
function
()
{
var
user
=
$
(
event
.
target
).
closest
(
'.action-upgrade'
).
data
(
'user'
),
Logger
.
log
(
'edx.course.enrollment.upgrade.clicked'
,
{
location
:
'learner_dashboard'
});
course
=
$
(
event
.
target
).
closest
(
'.action-upgrade'
).
data
(
'course-id'
);
Logger
.
log
(
'edx.course.enrollment.upgrade.clicked'
,
[
user
,
course
],
{
location
:
'learner_dashboard'
});
});
});
$
(
'.action-email-settings'
).
click
(
function
(
event
)
{
$
(
'.action-email-settings'
).
click
(
function
(
event
)
{
...
...
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