Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
987fe173
Commit
987fe173
authored
12 years ago
by
Calen Pennington
Browse files
Options
Downloads
Patches
Plain Diff
Load js fragments in order, so that Subview is loaded before the classes that use it
parent
5026d6e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cms/envs/common.py
+5
-4
5 additions, 4 deletions
cms/envs/common.py
common/lib/xmodule/xmodule/js/src/video/display/_subview.coffee
+0
-0
0 additions, 0 deletions
.../lib/xmodule/xmodule/js/src/video/display/_subview.coffee
lms/envs/common.py
+5
-4
5 additions, 4 deletions
lms/envs/common.py
with
10 additions
and
8 deletions
cms/envs/common.py
+
5
−
4
View file @
987fe173
...
...
@@ -197,12 +197,13 @@ for descriptor in XModuleDescriptor.load_classes() + [RawDescriptor]:
module_js
=
descriptor
.
module_class
.
get_javascript
()
for
filetype
in
(
'
coffee
'
,
'
js
'
):
for
fragment
in
descriptor_js
.
get
(
filetype
,
[])
+
module_js
.
get
(
filetype
,
[]):
fragments
.
add
((
filetype
,
fragment
))
for
idx
,
fragment
in
enumerate
(
descriptor_js
.
get
(
filetype
,
[])
+
module_js
.
get
(
filetype
,
[])
)
:
fragments
.
add
((
idx
,
filetype
,
fragment
))
module_js_sources
=
[]
for
filetype
,
fragment
in
fragments
:
path
=
os
.
path
.
join
(
js_file_dir
,
"
{hash}.{type}
"
.
format
(
for
idx
,
filetype
,
fragment
in
sorted
(
fragments
):
path
=
os
.
path
.
join
(
js_file_dir
,
"
{idx}-{hash}.{type}
"
.
format
(
idx
=
idx
,
hash
=
hashlib
.
md5
(
fragment
).
hexdigest
(),
type
=
filetype
))
with
open
(
path
,
'
w
'
)
as
js_file
:
...
...
This diff is collapsed.
Click to expand it.
lms/static/coffee/src
/_subview.coffee
→
common/lib/xmodule/xmodule/js/src/video/display
/_subview.coffee
+
0
−
0
View file @
987fe173
File moved
This diff is collapsed.
Click to expand it.
lms/envs/common.py
+
5
−
4
View file @
987fe173
...
...
@@ -346,12 +346,13 @@ fragments = set()
for
descriptor
in
XModuleDescriptor
.
load_classes
()
+
[
HiddenDescriptor
]:
module_js
=
descriptor
.
module_class
.
get_javascript
()
for
filetype
in
(
'
coffee
'
,
'
js
'
):
for
fragment
in
js
.
get
(
filetype
,
[]):
fragments
.
add
((
filetype
,
fragment
))
for
idx
,
fragment
in
enumerate
(
module_
js
.
get
(
filetype
,
[])
)
:
fragments
.
add
((
idx
,
filetype
,
fragment
))
module_js_sources
=
[]
for
filetype
,
fragment
in
fragments
:
path
=
os
.
path
.
join
(
js_file_dir
,
"
{hash}.{type}
"
.
format
(
for
idx
,
filetype
,
fragment
in
sorted
(
fragments
):
path
=
os
.
path
.
join
(
js_file_dir
,
"
{idx}-{hash}.{type}
"
.
format
(
idx
=
idx
,
hash
=
hashlib
.
md5
(
fragment
).
hexdigest
(),
type
=
filetype
))
with
open
(
path
,
'
w
'
)
as
js_file
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment