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
ff0c56b7
Commit
ff0c56b7
authored
Jun 03, 2013
by
Peter Fogg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning up code -- removed unnecessary lines, fixed indentation, renamed method.
parent
2871ce8d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
18 deletions
+11
-18
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
+0
-4
cms/djangoapps/contentstore/features/video.py
+1
-1
cms/static/coffee/src/views/unit.coffee
+0
-3
cms/templates/unit.html
+10
-10
No files found.
cms/djangoapps/contentstore/features/component_settings_editor_helpers.py
View file @
ff0c56b7
...
...
@@ -14,10 +14,6 @@ def create_component_instance(step, component_button_css, instance_id, expected_
@world.absorb
def
click_new_component_button
(
step
,
component_button_css
):
# step.given('I have opened a new course section in Studio')
# step.given('I have added a new subsection')
# step.given('I expand the first section')
# world.css_click('a.new-unit-item')
step
.
given
(
'I have clicked the new unit button'
)
world
.
css_click
(
component_button_css
)
...
...
cms/djangoapps/contentstore/features/video.py
View file @
ff0c56b7
...
...
@@ -12,7 +12,7 @@ def does_not_autoplay(step):
@step
(
'creating a video takes a single click'
)
def
click_new_component_button
(
step
):
def
video_takes_a_single_click
(
step
):
assert
(
not
world
.
is_css_present
(
'.xmodule_VideoModule'
))
world
.
css_click
(
"a[data-location='i4x://edx/templates/video/default']"
)
assert
(
world
.
is_css_present
(
'.xmodule_VideoModule'
))
cms/static/coffee/src/views/unit.coffee
View file @
ff0c56b7
...
...
@@ -65,9 +65,6 @@ class CMS.Views.UnitEdit extends Backbone.View
event
.
preventDefault
()
type
=
$
(
event
.
currentTarget
).
data
(
'type'
)
if
type
==
'video'
$
(
'.new-component-video .new-component-template a'
).
click
()
return
@
$newComponentTypePicker
.
slideUp
(
250
)
@
$
(
".new-component-
#{
type
}
"
).
slideDown
(
250
)
$
(
'html, body'
).
animate
({
...
...
cms/templates/unit.html
View file @
ff0c56b7
...
...
@@ -54,16 +54,16 @@
<h5>
Add New Component
</h5>
<ul
class=
"new-component-type"
>
% for type, templates in sorted(component_templates.items()):
<li>
% if type == 'advanced' or len(templates) > 1:
<a
href=
"#"
class=
"multiple_templates"
data-type=
"${type}"
>
% else:
<a
href=
"#"
class=
"single_template"
data-type=
"${type}"
data-location=
"${templates[0][1]}"
>
% endif
<span
class=
"large-template-icon large-${type}-icon"
></span>
<span
class=
"name"
>
${type}
</span>
</a>
</li>
<li>
% if type == 'advanced' or len(templates) > 1:
<a
href=
"#"
class=
"multiple_templates"
data-type=
"${type}"
>
% else:
<a
href=
"#"
class=
"single_template"
data-type=
"${type}"
data-location=
"${templates[0][1]}"
>
% endif
<span
class=
"large-template-icon large-${type}-icon"
></span>
<span
class=
"name"
>
${type}
</span>
</a>
</li>
% endfor
</ul>
</div>
...
...
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