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
144c6bca
Commit
144c6bca
authored
Jan 09, 2013
by
Don Mitchell
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/cas/speed-editor' of github.com:MITx/mitx into feature/cas/speed-editor
parents
fff9afde
31f9084b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
165 deletions
+30
-165
cms/static/coffee/src/views/unit.coffee
+0
-7
cms/static/img/problem-settings-icon.png
+0
-0
cms/static/sass/_graphics.scss
+0
-57
cms/templates/unit.html
+0
-101
common/lib/xmodule/xmodule/css/problem/edit.scss
+30
-0
No files found.
cms/static/coffee/src/views/unit.coffee
View file @
144c6bca
...
...
@@ -68,13 +68,6 @@ class CMS.Views.UnitEdit extends Backbone.View
@
$newComponentItem
.
removeClass
(
'adding'
)
@
$newComponentItem
.
find
(
'.rendered-component'
).
remove
()
closeEditor
:
(
event
)
=>
@
$editor
.
slideUp
(
150
)
$modalCover
.
fadeOut
(
150
)
$modalCover
.
unbind
(
'click'
,
@
closeEditor
)
@
$editor
.
slideUp
(
150
)
@
$componentItem
.
removeClass
(
'editing'
)
saveNewComponent
:
(
event
)
=>
event
.
preventDefault
()
...
...
cms/static/img/problem-settings-icon.png
deleted
100644 → 0
View file @
fff9afde
1.29 KB
cms/static/sass/_graphics.scss
View file @
144c6bca
...
...
@@ -310,60 +310,3 @@
vertical-align
:
middle
;
background
:
url(../img/spinner-in-field.gif)
no-repeat
;
}
.problem-editor-icon
{
display
:
inline-block
;
width
:
26px
;
height
:
21px
;
vertical-align
:
middle
;
background
:
url(../img/problem-editor-icons.png)
no-repeat
;
}
.problem-editor-icon.multiple-choice
{
background-position
:
0
0
;
}
.problem-editor-icon.checks
{
background-position
:
-56px
0
;
}
.problem-editor-icon.string
{
width
:
28px
;
background-position
:
-111px
0
;
}
.problem-editor-icon.number
{
width
:
24px
;
background-position
:
-168px
0
;
}
.problem-editor-icon.dropdown
{
width
:
17px
;
background-position
:
-220px
0
;
}
.settings-icon
{
display
:
inline-block
;
width
:
20px
;
height
:
20px
;
vertical-align
:
middle
;
background
:
url(../img/problem-settings-icon.png)
no-repeat
;
}
.sort-icon
{
font-size
:
7px
;
vertical-align
:
middle
;
&
.down
:before
{
content
:
'▼'
;
}
&
.up
:before
{
content
:
'▲'
;
}
}
cms/templates/unit.html
View file @
144c6bca
...
...
@@ -19,107 +19,6 @@
$
(
this
).
prepend
(
$emptyEditor
);
});
})();
function
setEditorTab
(
e
)
{
e
.
preventDefault
();
$
(
'.editor-tabs .current'
).
removeClass
(
'current'
);
$
(
this
).
addClass
(
'current'
);
switch
(
$
(
this
).
attr
(
'data-tab'
))
{
case
'simple'
:
currentEditor
=
simpleEditor
;
$
(
simpleEditor
.
getWrapperElement
()).
show
();
$
(
xmlEditor
.
getWrapperElement
()).
hide
();
$
(
simpleEditor
).
focus
();
onSimpleEditorUpdate
();
break
;
case
'xml'
:
currentEditor
=
xmlEditor
;
$
(
simpleEditor
.
getWrapperElement
()).
hide
();
$
(
xmlEditor
.
getWrapperElement
()).
show
();
$
(
xmlEditor
).
focus
();
xmlEditor
.
refresh
();
break
;
case
'visual'
:
currentEditor
=
visualEditor
;
convertHTMLToVisual
();
$
(
'table.mceToolbar'
).
show
();
$
(
htmlEditor
.
getWrapperElement
()).
hide
();
break
;
case
'html'
:
currentEditor
=
htmlEditor
;
$
(
'table.mceToolbar'
).
hide
();
$
(
htmlEditor
.
getWrapperElement
()).
show
();
$
(
htmlEditor
).
focus
();
convertVisualToHTML
();
htmlEditor
.
refresh
();
break
;
}
}
</script>
<script
type=
"text/template"
id=
"simple-editor-cheatsheet"
>
<
article
class
=
"simple-editor-cheatsheet"
>
<
div
class
=
"cheatsheet-wrapper"
>
<
div
class
=
"row"
>
<
h6
>
Multiple
Choice
<
/h6
>
<
div
class
=
"col sample"
>
<
img
src
=
"/static/img/choice-example.png"
/>
<
/div
>
<
div
class
=
"col"
>
<
pre
><
code
>
(
)
red
(
)
green
(
x
)
blue
<
/code></
pre
>
<
/div
>
<
/div
>
<
div
class
=
"row"
>
<
h6
>
Multiple
Check
<
/h6
>
<
div
class
=
"col sample"
>
<
img
src
=
"/static/img/multi-example.png"
/>
<
/div
>
<
div
class
=
"col"
>
<
pre
><
code
>
[
]
earth
[
]
wind
[
x
]
water
<
/code></
pre
>
<
/div
>
<
/div
>
<
div
class
=
"row"
>
<
h6
>
String
Response
<
/h6
>
<
div
class
=
"col sample"
>
<
img
src
=
"/static/img/string-example.png"
/>
<
/div
>
<
div
class
=
"col"
>
<
pre
><
code
>=
dog
<
/code></
pre
>
<
/div
>
<
/div
>
<
div
class
=
"row"
>
<
h6
>
Numerical
Response
<
/h6
>
<
div
class
=
"col sample"
>
<
img
src
=
"/static/img/number-example.png"
/>
<
/div
>
<
div
class
=
"col"
>
<
pre
><
code
>=
3.14
+-
2
%<
/code></
pre
>
<
/div
>
<
/div
>
<
div
class
=
"row"
>
<
h6
>
Option
Response
<
/h6
>
<
div
class
=
"col sample"
>
<
img
src
=
"/static/img/select-example.png"
/>
<
/div
>
<
div
class
=
"col"
>
<
pre
><
code
>
[[
wrong
,
(
right
)]]
<
/code></
pre
>
<
/div
>
<
/div
>
<
/div
>
<
/article
>
</script>
<script
type=
"text/template"
id=
"component-actions"
>
<
div
class
=
"component-actions"
>
<
a
href
=
"#"
class
=
"edit-button"
><
span
class
=
"edit-icon white"
><
/span>Edit</
a
>
<
a
href
=
"#"
class
=
"delete-button"
><
span
class
=
"delete-icon white"
><
/span>Delete</
a
>
<
/div
>
<
a
href
=
"#"
class
=
"drag-handle"
><
/a
>
</script>
</
%
block>
...
...
common/lib/xmodule/xmodule/css/problem/edit.scss
View file @
144c6bca
...
...
@@ -142,5 +142,35 @@
}
}
.problem-editor-icon
{
display
:
inline-block
;
width
:
26px
;
height
:
21px
;
vertical-align
:
middle
;
background
:
url(../img/problem-editor-icons.png)
no-repeat
;
}
.problem-editor-icon.multiple-choice
{
background-position
:
0
0
;
}
.problem-editor-icon.checks
{
background-position
:
-56px
0
;
}
.problem-editor-icon.string
{
width
:
28px
;
background-position
:
-111px
0
;
}
.problem-editor-icon.number
{
width
:
24px
;
background-position
:
-168px
0
;
}
.problem-editor-icon.dropdown
{
width
:
17px
;
background-position
:
-220px
0
;
}
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