commented out firefox polyfill ad well as xmodule css editor changes

This commit is contained in:
marco
2013-05-15 16:07:45 -04:00
parent ba11d37ba9
commit 12dae84a07
6 changed files with 30 additions and 9 deletions

View File

@@ -3,4 +3,8 @@
<li class="field comp-setting-entry metadata_entry">
</li>
<% }) %>
</ul>
</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

View 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()

View File

@@ -954,4 +954,19 @@ body.unit {
.view-button {
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;
}
}

View 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>

View File

@@ -5,7 +5,6 @@
.row {
position: relative;
//testing
.CodeMirror {
padding: 15px;
}

View File

@@ -3,8 +3,6 @@
/*
HTML5 Number polyfill | Jonathan Stipe | https://github.com/jonstipe/number-polyfill
*/
function triggerNumberPolyfill() {
(function() {
@@ -298,5 +296,3 @@ function triggerNumberPolyfill() {
})(jQuery);
}).call(this);
}