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
2c3a5428
Commit
2c3a5428
authored
Jul 05, 2012
by
Prem Sichanugrist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update code base on changes in master
parent
e92d8def
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
10 deletions
+10
-10
cms/static/coffee/src/views/week.coffee
+1
-1
cms/templates/widgets/navigation.html
+2
-2
cms/templates/widgets/sequence-edit.html
+1
-1
common/lib/xmodule/xmodule/js/module/html.coffee
+3
-3
common/lib/xmodule/xmodule/js/module/raw.coffee
+3
-3
No files found.
cms/static/coffee/src/views/week.coffee
View file @
2c3a5428
class
CMS
.
Views
.
Week
extends
Backbone
.
View
class
CMS
.
Views
.
Week
extends
Backbone
.
View
events
:
events
:
'click .
module
-edit'
:
'edit'
'click .
week
-edit'
:
'edit'
initialize
:
->
initialize
:
->
@
model
=
new
CMS
.
Models
.
Week
(
id
:
@
$el
.
data
(
'id'
))
@
model
=
new
CMS
.
Models
.
Week
(
id
:
@
$el
.
data
(
'id'
))
...
...
cms/templates/widgets/navigation.html
View file @
2c3a5428
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
% for week in weeks:
% for week in weeks:
<li
class=
"week"
data-id=
"${week.location.url()}"
>
<li
class=
"week"
data-id=
"${week.location.url()}"
>
<header>
<header>
<h1><a
href=
"#"
class=
"
module
-edit"
>
${week.name}
</a></h1>
<h1><a
href=
"#"
class=
"
week
-edit"
>
${week.name}
</a></h1>
<ul>
<ul>
% if 'goals' in week.metadata:
% if 'goals' in week.metadata:
% for goal in week.metadata['goals']:
% for goal in week.metadata['goals']:
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
<ul
class=
"modules"
>
<ul
class=
"modules"
>
% for module in week.get_children():
% for module in week.get_children():
<li
class=
"module"
data-id=
"${module.location.url()}"
data-type=
"${module.
category
}"
>
<li
class=
"module"
data-id=
"${module.location.url()}"
data-type=
"${module.
js_module_name()
}"
>
<a
href=
"#"
class=
"module-edit"
>
${module.name}
</a>
<a
href=
"#"
class=
"module-edit"
>
${module.name}
</a>
<a
href=
"#"
class=
"draggable"
>
handle
</a>
<a
href=
"#"
class=
"draggable"
>
handle
</a>
</li>
</li>
...
...
cms/templates/widgets/sequence-edit.html
View file @
2c3a5428
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<ol>
<ol>
% for child in module.get_children():
% for child in module.get_children():
<li>
<li>
<a
href=
"#"
class=
"module-edit"
data-id=
"${child.location.url()}"
data-type=
"${child.
type
}"
>
${child.name}
</a>
<a
href=
"#"
class=
"module-edit"
data-id=
"${child.location.url()}"
data-type=
"${child.
js_module_name()
}"
>
${child.name}
</a>
<a
href=
"#"
class=
"draggable"
>
handle
</a>
<a
href=
"#"
class=
"draggable"
>
handle
</a>
</li>
</li>
%endfor
%endfor
...
...
common/lib/xmodule/xmodule/js/module/html.coffee
View file @
2c3a5428
class
@
HTML
class
@
HTML
constructor
:
(
@
id
)
->
constructor
:
(
@
element
)
->
@
edit_box
=
$
(
"
#
#{
@
id
}
.edit-box"
)
@
edit_box
=
$
(
"
.edit-box"
,
@
element
)
@
preview
=
$
(
"
#
#{
@
id
}
.preview"
)
@
preview
=
$
(
"
.preview"
,
@
element
)
@
edit_box
.
on
(
'input'
,
=>
@
edit_box
.
on
(
'input'
,
=>
@
preview
.
empty
().
append
(
@
edit_box
.
val
())
@
preview
.
empty
().
append
(
@
edit_box
.
val
())
)
)
...
...
common/lib/xmodule/xmodule/js/module/raw.coffee
View file @
2c3a5428
class
@
Raw
class
@
Raw
constructor
:
(
@
id
)
->
constructor
:
(
@
element
)
->
@
edit_box
=
$
(
"
#
#{
@
id
}
.edit-box"
)
@
edit_box
=
$
(
"
.edit-box"
,
@
element
)
@
preview
=
$
(
"
#
#{
@
id
}
.preview"
)
@
preview
=
$
(
"
.preview"
,
@
element
)
@
edit_box
.
on
(
'input'
,
=>
@
edit_box
.
on
(
'input'
,
=>
@
preview
.
empty
().
text
(
@
edit_box
.
val
())
@
preview
.
empty
().
text
(
@
edit_box
.
val
())
)
)
...
...
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