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
ef141553
Commit
ef141553
authored
May 16, 2013
by
marco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaned up latex styling, polyfill function wrapper, draft number template update for polyfill
parent
bbb6a3c6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
17 deletions
+16
-17
cms/static/client_templates/metadata_editor.html
+3
-7
cms/static/client_templates/metadata_number_entry.html
+1
-1
cms/templates/widgets/metadata-edit.html
+4
-4
common/lib/xmodule/xmodule/css/editor/edit.scss
+0
-4
common/lib/xmodule/xmodule/css/problem/edit.scss
+7
-0
common/static/js/vendor/html5-input-polyfills/number-polyfill.js
+1
-1
No files found.
cms/static/client_templates/metadata_editor.html
View file @
ef141553
<ul
class=
"list-input settings-list"
>
<ul
class=
"list-input settings-list"
>
<
%
_
.
each
(
metadata_entries
,
function
(
entry
)
{
%
>
<
%
_
.
each
(
metadata_entries
,
function
(
entry
)
{
%
>
<li
class=
"field comp-setting-entry metadata_entry"
>
<li
class=
"field comp-setting-entry metadata_entry"
id=
"settings-listing"
>
</li>
</li>
<
%
})
%
>
<
%
})
%
>
</ul>
</ul>
% if showHighLevelSource:
\ No newline at end of file
<a
href=
"#hls-modal-${hlskey}"
class=
"launch-latex-compiler"
id=
"hls-trig-${hlskey}"
>
Edit High Level Source
</a>
<
%
include
file=
"source-edit.html"
/>
% endif
\ No newline at end of file
cms/static/client_templates/metadata_number_entry.html
View file @
ef141553
<div
class=
"wrapper-comp-setting"
>
<div
class=
"wrapper-comp-setting"
>
<label
class=
"label setting-label"
for=
"<%= uniqueId %>"
><
%=
model
.
get
('
display_name
')
%
></label>
<label
class=
"label setting-label"
for=
"<%= uniqueId %>"
><
%=
model
.
get
('
display_name
')
%
></label>
<input
class=
"input setting-input"
type=
"number"
id=
"<%= uniqueId %>"
value=
'<%= model.get("value") %>'
on
blur=
"this.checkNumberSettingValidity(
);"
/>
<input
class=
"input setting-input"
type=
"number"
id=
"<%= uniqueId %>"
value=
'<%= model.get("value") %>'
on
keyup=
"checkNumberSettingValidity(this
);"
/>
<button
class=
"action setting-clear inactive"
type=
"button"
name=
"setting-clear"
value=
"Clear"
data-tooltip=
"Clear"
>
<button
class=
"action setting-clear inactive"
type=
"button"
name=
"setting-clear"
value=
"Clear"
data-tooltip=
"Clear"
>
<i
class=
"ss-icon ss-symbolicons-block undo"
>
↩
</i><span
class=
"sr"
>
Clear Value
</span>
<i
class=
"ss-icon ss-symbolicons-block undo"
>
↩
</i><span
class=
"sr"
>
Clear Value
</span>
</button>
</button>
...
...
cms/templates/widgets/metadata-edit.html
View file @
ef141553
...
@@ -12,13 +12,12 @@
...
@@ -12,13 +12,12 @@
## source-edit.html needs access to the 'source_code' value, so delete from a copy.
## source-edit.html needs access to the 'source_code' value, so delete from a copy.
<
%
del
metadata_field_copy
['
source_code
']
%
>
<
%
del
metadata_field_copy
['
source_code
']
%
>
% endif
% endif
<div
class=
"wrapper-comp-settings metadata_edit"
id=
"settings-tab"
data-metadata=
'${json.dumps(metadata_field_copy)}'
/>
% if showHighLevelSource:
% if showHighLevelSource:
<div
class=
"launch-latex-compiler"
>
<div
class=
"launch-latex-compiler"
>
<
label
class=
"label setting-label"
>
Latex Compiler Mode
</label>
<
a
href=
"#hls-modal-${hlskey}"
id=
"hls-trig-${hlskey}"
>
Launch Latex Source Compiler
</a>
<a
href=
"#hls-modal-${hlskey}"
id=
"hls-trig-${hlskey}"
>
Launch Latex Source Compiler
</a>
</div>
</div>
<
%
include
file=
"source-edit.html"
/>
<
%
include
file=
"source-edit.html"
/>
% endif
% endif
</div>
<div
class=
"wrapper-comp-settings metadata_edit"
id=
"settings-tab"
data-metadata=
'${json.dumps(metadata_field_copy)}'
/>
\ No newline at end of file
common/lib/xmodule/xmodule/css/editor/edit.scss
View file @
ef141553
...
@@ -4,10 +4,6 @@
...
@@ -4,10 +4,6 @@
.row
{
.row
{
position
:
relative
;
position
:
relative
;
.CodeMirror
{
padding
:
15px
;
}
}
}
.editor-bar
{
.editor-bar
{
...
...
common/lib/xmodule/xmodule/css/problem/edit.scss
View file @
ef141553
...
@@ -99,6 +99,13 @@
...
@@ -99,6 +99,13 @@
}
}
}
}
.problem-editor
{
// adding padding to simple editor only - adjacent selector is needed since there are no toggles for CodeMirror
.markdown-box
+
.CodeMirror
{
padding
:
10px
;
}
}
.problem-editor-icon
{
.problem-editor-icon
{
display
:
inline-block
;
display
:
inline-block
;
width
:
26px
;
width
:
26px
;
...
...
common/static/js/vendor/html5-input-polyfills/number-polyfill.js
View file @
ef141553
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
/*
/*
HTML5 Number polyfill | Jonathan Stipe | https://github.com/jonstipe/number-polyfill
HTML5 Number polyfill | Jonathan Stipe | https://github.com/jonstipe/number-polyfill
*/
*/
(
function
()
{
(
function
()
{
(
function
(
$
)
{
(
function
(
$
)
{
...
...
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