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
8906cffb
Commit
8906cffb
authored
Oct 09, 2013
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct placement of baseUrl variable, use it to configure requirejs
parent
e53680bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
common/static/js/capa/drag_and_drop.js
+5
-0
lms/templates/main.html
+1
-1
No files found.
common/static/js/capa/drag_and_drop.js
View file @
8906cffb
...
...
@@ -4,6 +4,11 @@
// See https://edx-wiki.atlassian.net/wiki/display/LMS/Integration+of+Require+JS+into+the+system
(
function
(
requirejs
,
require
,
define
)
{
// HACK: this should be removed when it is safe to do so
if
(
window
.
baseUrl
)
{
requirejs
.
config
({
baseUrl
:
baseUrl
});
}
// The current JS file will be loaded and run each time. It will require a
// single dependency which will be loaded and stored by RequireJS. On
// subsequent runs, RequireJS will return the dependency from memory, rather
...
...
lms/templates/main.html
View file @
8906cffb
...
...
@@ -36,7 +36,6 @@
if
(
window
.
location
!==
window
.
top
.
location
)
{
window
.
top
.
location
=
window
.
location
;
}
window
.
baseUrl
=
"${settings.STATIC_URL}"
;
})(
this
);
</script>
% endif
...
...
@@ -96,6 +95,7 @@
<
%
include
file=
"footer.html"
/>
% endif
<script>
window
.
baseUrl
=
"${settings.STATIC_URL}"
;
</script>
<
%
static:js
group=
'application'
/>
<
%
static:js
group=
'module-js'
/>
...
...
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