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
168b6b36
Commit
168b6b36
authored
Oct 25, 2017
by
Matthew Piatetsky
Committed by
GitHub
Oct 25, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16332 from edx/LEARNER-2412
Only convert price to local currency after document is ready
parents
c1292383
f015682d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
openedx/features/course_experience/static/course_experience/js/currency.js
+8
-1
No files found.
openedx/features/course_experience/static/course_experience/js/currency.js
View file @
168b6b36
...
...
@@ -66,9 +66,16 @@ export class Currency { // eslint-disable-line import/prefer-default-export
this
.
setPrice
();
}
getCountryCaller
(
position
)
{
const
caller
=
function
callerFunction
()
{
this
.
getCountry
(
position
);
}.
bind
(
this
);
$
(
document
).
ready
(
caller
);
}
getUserLocation
()
{
// Get user location from browser
navigator
.
geolocation
.
getCurrentPosition
(
this
.
getCountry
.
bind
(
this
));
navigator
.
geolocation
.
getCurrentPosition
(
this
.
getCountry
Caller
.
bind
(
this
));
}
constructor
(
skipInitialize
)
{
...
...
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