Commit 12dae84a by marco

commented out firefox polyfill ad well as xmodule css editor changes

parent ba11d37b
......@@ -4,3 +4,7 @@
</li>
<% }) %>
</ul>
% 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
......@@ -28,6 +28,11 @@ class CMS.Views.ModuleEdit extends Backbone.View
el: metadataEditor,
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.
# If we are only showing settings, hide the data editor controls and update settings accordingly.
if @hasDataEditor()
......
......@@ -955,3 +955,18 @@ body.unit {
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
......@@ -8,10 +8,12 @@
% if 'source_code' in json_metadata_data:
<% del json_metadata_data['source_code'] %>
% 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:
<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" />
% endif
</div>
......@@ -5,7 +5,6 @@
.row {
position: relative;
//testing
.CodeMirror {
padding: 15px;
}
......
......@@ -4,8 +4,6 @@
HTML5 Number polyfill | Jonathan Stipe | https://github.com/jonstipe/number-polyfill
*/
function triggerNumberPolyfill() {
(function() {
(function($) {
......@@ -298,5 +296,3 @@ function triggerNumberPolyfill() {
})(jQuery);
}).call(this);
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment