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
7d1d135c
Commit
7d1d135c
authored
Nov 13, 2012
by
Victor Shnayder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Wire in some initial js.
parent
f5d9e963
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
lms/envs/common.py
+13
-2
lms/static/coffee/src/staff_grading/staff_grading.coffee
+6
-0
lms/templates/instructor/staff_grading.html
+1
-0
No files found.
lms/envs/common.py
View file @
7d1d135c
...
@@ -406,6 +406,9 @@ main_vendor_js = [
...
@@ -406,6 +406,9 @@ main_vendor_js = [
discussion_js
=
sorted
(
glob2
.
glob
(
PROJECT_ROOT
/
'static/coffee/src/discussion/**/*.coffee'
))
discussion_js
=
sorted
(
glob2
.
glob
(
PROJECT_ROOT
/
'static/coffee/src/discussion/**/*.coffee'
))
staff_grading_js
=
sorted
(
glob2
.
glob
(
PROJECT_ROOT
/
'static/coffee/src/staff_grading/**/*.coffee'
))
# Load javascript from all of the available xmodules, and
# Load javascript from all of the available xmodules, and
# prep it for use in pipeline js
# prep it for use in pipeline js
from
xmodule.x_module
import
XModuleDescriptor
from
xmodule.x_module
import
XModuleDescriptor
...
@@ -468,7 +471,8 @@ with open(module_styles_path, 'w') as module_styles:
...
@@ -468,7 +471,8 @@ with open(module_styles_path, 'w') as module_styles:
PIPELINE_JS
=
{
PIPELINE_JS
=
{
'application'
:
{
'application'
:
{
# Application will contain all paths not in courseware_only_js
# Application will contain all paths not in courseware_only_js or
# discussion_js or staff_grading_js
'source_filenames'
:
[
'source_filenames'
:
[
pth
.
replace
(
COMMON_ROOT
/
'static/'
,
''
)
pth
.
replace
(
COMMON_ROOT
/
'static/'
,
''
)
for
pth
for
pth
...
@@ -476,7 +480,9 @@ PIPELINE_JS = {
...
@@ -476,7 +480,9 @@ PIPELINE_JS = {
]
+
[
]
+
[
pth
.
replace
(
PROJECT_ROOT
/
'static/'
,
''
)
pth
.
replace
(
PROJECT_ROOT
/
'static/'
,
''
)
for
pth
in
sorted
(
glob2
.
glob
(
PROJECT_ROOT
/
'static/coffee/src/**/*.coffee'
))
\
for
pth
in
sorted
(
glob2
.
glob
(
PROJECT_ROOT
/
'static/coffee/src/**/*.coffee'
))
\
if
pth
not
in
courseware_only_js
and
pth
not
in
discussion_js
if
(
pth
not
in
courseware_only_js
and
pth
not
in
discussion_js
and
pth
not
in
staff_grading_js
)
]
+
[
]
+
[
'js/form.ext.js'
,
'js/form.ext.js'
,
'js/my_courses_dropdown.js'
,
'js/my_courses_dropdown.js'
,
...
@@ -505,7 +511,12 @@ PIPELINE_JS = {
...
@@ -505,7 +511,12 @@ PIPELINE_JS = {
'discussion'
:
{
'discussion'
:
{
'source_filenames'
:
[
pth
.
replace
(
PROJECT_ROOT
/
'static/'
,
''
)
for
pth
in
discussion_js
],
'source_filenames'
:
[
pth
.
replace
(
PROJECT_ROOT
/
'static/'
,
''
)
for
pth
in
discussion_js
],
'output_filename'
:
'js/discussion.js'
'output_filename'
:
'js/discussion.js'
},
'staff_grading'
:
{
'source_filenames'
:
[
pth
.
replace
(
PROJECT_ROOT
/
'static/'
,
''
)
for
pth
in
staff_grading_js
],
'output_filename'
:
'js/staff_grading.js'
}
}
}
}
PIPELINE_DISABLE_WRAPPER
=
True
PIPELINE_DISABLE_WRAPPER
=
True
...
...
lms/static/coffee/src/staff_grading/staff_grading.coffee
0 → 100644
View file @
7d1d135c
class
@
StaffGrading
constructor
:
->
alert
(
'hi!'
)
\ No newline at end of file
lms/templates/instructor/staff_grading.html
View file @
7d1d135c
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='staff_grading'"
/>
<
%
include
file=
"/courseware/course_navigation.html"
args=
"active_page='staff_grading'"
/>
<
%
block
name=
"js_extra"
>
<
%
block
name=
"js_extra"
>
<
%
static:js
group=
'staff_grading'
/>
</
%
block>
</
%
block>
<section
class=
"container"
>
<section
class=
"container"
>
...
...
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