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
12dae84a
Commit
12dae84a
authored
May 15, 2013
by
marco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commented out firefox polyfill ad well as xmodule css editor changes
parent
ba11d37b
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
11 deletions
+32
-11
cms/static/client_templates/metadata_editor.html
+6
-2
cms/static/coffee/src/views/module_edit.coffee
+5
-0
cms/static/sass/views/_unit.scss
+16
-0
cms/templates/widgets/metadata-edit.html
+5
-3
common/lib/xmodule/xmodule/css/editor/edit.scss
+0
-1
common/static/js/vendor/html5-input-polyfills/number-polyfill.js
+0
-5
No files found.
cms/static/client_templates/metadata_editor.html
View file @
12dae84a
...
@@ -3,4 +3,8 @@
...
@@ -3,4 +3,8 @@
<li
class=
"field comp-setting-entry metadata_entry"
>
<li
class=
"field comp-setting-entry metadata_entry"
>
</li>
</li>
<
%
})
%
>
<
%
})
%
>
</ul>
</ul>
\ No newline at end of file
% if showHighLevelSource:
<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/coffee/src/views/module_edit.coffee
View file @
12dae84a
...
@@ -28,6 +28,11 @@ class CMS.Views.ModuleEdit extends Backbone.View
...
@@ -28,6 +28,11 @@ class CMS.Views.ModuleEdit extends Backbone.View
el
:
metadataEditor
,
el
:
metadataEditor
,
model
:
new
CMS
.
Models
.
MetadataEditor
(
metadataEditor
.
data
(
'metadata'
))
model
:
new
CMS
.
Models
.
MetadataEditor
(
metadataEditor
.
data
(
'metadata'
))
});
});
#Manually runs polyfill for input number types to correct for Firefox non-support
#wrapperSettings = @$el.find(".wrapper-comp-settings")
#wrapperSettings.inputNumber()
# Need to update set "active" class on data editor if there is one.
# Need to update set "active" class on data editor if there is one.
# If we are only showing settings, hide the data editor controls and update settings accordingly.
# If we are only showing settings, hide the data editor controls and update settings accordingly.
if
@
hasDataEditor
()
if
@
hasDataEditor
()
...
...
cms/static/sass/views/_unit.scss
View file @
12dae84a
...
@@ -954,4 +954,19 @@ body.unit {
...
@@ -954,4 +954,19 @@ body.unit {
.view-button
{
.view-button
{
display
:
none
;
display
:
none
;
}
}
}
// Latex Compiler
// ====================
.launch-latex-compiler
{
background-color
:
$white
;
padding
:
10px
0
10px
20px
;
border-bottom
:
1px
solid
$gray-l2
;
opacity
:
.8
;
&
:hover
{
@include
transition
(
opacity
0
.25s
ease-in-out
);
opacity
:
1
;
}
}
}
\ No newline at end of file
cms/templates/widgets/metadata-edit.html
View file @
12dae84a
...
@@ -8,10 +8,12 @@
...
@@ -8,10 +8,12 @@
% if 'source_code' in json_metadata_data:
% if 'source_code' in json_metadata_data:
<
%
del
json_metadata_data
['
source_code
']
%
>
<
%
del
json_metadata_data
['
source_code
']
%
>
% endif
% endif
<div
class=
"wrapper-comp-settings metadata_edit"
id=
"settings-tab"
data-metadata=
'${json.dumps(json_metadata_data)}'
/>
<div
class=
"wrapper-comp-settings metadata_edit"
id=
"settings-tab"
data-metadata=
'${json.dumps(json_metadata_data)}'
>
% if showHighLevelSource:
% if showHighLevelSource:
<a
href=
"#hls-modal-${hlskey}"
style=
"color:yellow;"
id=
"hls-trig-${hlskey}"
>
Edit High Level Source
</a>
<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></div>
<
%
include
file=
"source-edit.html"
/>
<
%
include
file=
"source-edit.html"
/>
% endif
% endif
</div>
common/lib/xmodule/xmodule/css/editor/edit.scss
View file @
12dae84a
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
.row
{
.row
{
position
:
relative
;
position
:
relative
;
//testing
.CodeMirror
{
.CodeMirror
{
padding
:
15px
;
padding
:
15px
;
}
}
...
...
common/static/js/vendor/html5-input-polyfills/number-polyfill.js
View file @
12dae84a
...
@@ -3,8 +3,6 @@
...
@@ -3,8 +3,6 @@
/*
/*
HTML5 Number polyfill | Jonathan Stipe | https://github.com/jonstipe/number-polyfill
HTML5 Number polyfill | Jonathan Stipe | https://github.com/jonstipe/number-polyfill
*/
*/
function
triggerNumberPolyfill
()
{
(
function
()
{
(
function
()
{
...
@@ -298,5 +296,3 @@ function triggerNumberPolyfill() {
...
@@ -298,5 +296,3 @@ function triggerNumberPolyfill() {
})(
jQuery
);
})(
jQuery
);
}).
call
(
this
);
}).
call
(
this
);
}
\ No newline at end of file
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