diff --git a/cms/static/client_templates/metadata_editor.html b/cms/static/client_templates/metadata_editor.html index 6780c4f1da..db355b38a7 100644 --- a/cms/static/client_templates/metadata_editor.html +++ b/cms/static/client_templates/metadata_editor.html @@ -3,4 +3,8 @@
  • <% }) %> - \ No newline at end of file + +% if showHighLevelSource: + Edit High Level Source + <%include file="source-edit.html" /> +% endif \ No newline at end of file diff --git a/cms/static/coffee/src/views/module_edit.coffee b/cms/static/coffee/src/views/module_edit.coffee index 04d99299d2..6e5676ca82 100644 --- a/cms/static/coffee/src/views/module_edit.coffee +++ b/cms/static/coffee/src/views/module_edit.coffee @@ -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() diff --git a/cms/static/sass/views/_unit.scss b/cms/static/sass/views/_unit.scss index e19a49a0da..56c838f799 100644 --- a/cms/static/sass/views/_unit.scss +++ b/cms/static/sass/views/_unit.scss @@ -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; + } } \ No newline at end of file diff --git a/cms/templates/widgets/metadata-edit.html b/cms/templates/widgets/metadata-edit.html index 8367011c42..0f906ebed2 100644 --- a/cms/templates/widgets/metadata-edit.html +++ b/cms/templates/widgets/metadata-edit.html @@ -8,10 +8,12 @@ % if 'source_code' in json_metadata_data: <% del json_metadata_data['source_code'] %> % endif -
    - +
    % if showHighLevelSource: - Edit High Level Source +
    + + Launch Latex Source Compiler
    <%include file="source-edit.html" /> % endif +
    diff --git a/common/lib/xmodule/xmodule/css/editor/edit.scss b/common/lib/xmodule/xmodule/css/editor/edit.scss index dec070264a..e94d776035 100644 --- a/common/lib/xmodule/xmodule/css/editor/edit.scss +++ b/common/lib/xmodule/xmodule/css/editor/edit.scss @@ -5,7 +5,6 @@ .row { position: relative; - //testing .CodeMirror { padding: 15px; } diff --git a/common/static/js/vendor/html5-input-polyfills/number-polyfill.js b/common/static/js/vendor/html5-input-polyfills/number-polyfill.js index ab47dcdd94..a9bc1b73d3 100644 --- a/common/static/js/vendor/html5-input-polyfills/number-polyfill.js +++ b/common/static/js/vendor/html5-input-polyfills/number-polyfill.js @@ -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); - -} \ No newline at end of file