diff --git a/cms/static/coffee/src/views/unit.coffee b/cms/static/coffee/src/views/unit.coffee
index 4b19e58f6e..fe8f928746 100644
--- a/cms/static/coffee/src/views/unit.coffee
+++ b/cms/static/coffee/src/views/unit.coffee
@@ -68,13 +68,6 @@ class CMS.Views.UnitEdit extends Backbone.View
@$newComponentItem.removeClass('adding')
@$newComponentItem.find('.rendered-component').remove()
- closeEditor: (event) =>
- @$editor.slideUp(150)
- $modalCover.fadeOut(150)
- $modalCover.unbind('click', @closeEditor)
- @$editor.slideUp(150)
- @$componentItem.removeClass('editing')
-
saveNewComponent: (event) =>
event.preventDefault()
diff --git a/cms/static/img/problem-settings-icon.png b/cms/static/img/problem-settings-icon.png
deleted file mode 100644
index f99082a1e7..0000000000
Binary files a/cms/static/img/problem-settings-icon.png and /dev/null differ
diff --git a/cms/static/sass/_graphics.scss b/cms/static/sass/_graphics.scss
index 09e96c3788..4ed22c570d 100644
--- a/cms/static/sass/_graphics.scss
+++ b/cms/static/sass/_graphics.scss
@@ -310,60 +310,3 @@
vertical-align: middle;
background: url(../img/spinner-in-field.gif) no-repeat;
}
-
-.problem-editor-icon {
- display: inline-block;
- width: 26px;
- height: 21px;
- vertical-align: middle;
- background: url(../img/problem-editor-icons.png) no-repeat;
-}
-
-.problem-editor-icon.multiple-choice {
- background-position: 0 0;
-}
-
-.problem-editor-icon.checks {
- background-position: -56px 0;
-}
-
-.problem-editor-icon.string {
- width: 28px;
- background-position: -111px 0;
-}
-
-.problem-editor-icon.number {
- width: 24px;
- background-position: -168px 0;
-}
-
-.problem-editor-icon.dropdown {
- width: 17px;
- background-position: -220px 0;
-}
-
-.settings-icon {
- display: inline-block;
- width: 20px;
- height: 20px;
- vertical-align: middle;
- background: url(../img/problem-settings-icon.png) no-repeat;
-}
-
-.sort-icon {
- font-size: 7px;
- vertical-align: middle;
-
- &.down:before {
- content: '▼';
- }
-
- &.up:before {
- content: '▲';
- }
-}
-
-
-
-
-
diff --git a/cms/templates/unit.html b/cms/templates/unit.html
index abf4a876a3..75c57f52f2 100644
--- a/cms/templates/unit.html
+++ b/cms/templates/unit.html
@@ -19,107 +19,6 @@
$(this).prepend($emptyEditor);
});
})();
-
- function setEditorTab(e) {
- e.preventDefault();
- $('.editor-tabs .current').removeClass('current');
- $(this).addClass('current');
- switch($(this).attr('data-tab')) {
- case 'simple':
- currentEditor = simpleEditor;
- $(simpleEditor.getWrapperElement()).show();
- $(xmlEditor.getWrapperElement()).hide();
- $(simpleEditor).focus();
- onSimpleEditorUpdate();
- break;
- case 'xml':
- currentEditor = xmlEditor;
- $(simpleEditor.getWrapperElement()).hide();
- $(xmlEditor.getWrapperElement()).show();
- $(xmlEditor).focus();
- xmlEditor.refresh();
- break;
- case 'visual':
- currentEditor = visualEditor;
- convertHTMLToVisual();
- $('table.mceToolbar').show();
- $(htmlEditor.getWrapperElement()).hide();
- break;
- case 'html':
- currentEditor = htmlEditor;
- $('table.mceToolbar').hide();
- $(htmlEditor.getWrapperElement()).show();
- $(htmlEditor).focus();
- convertVisualToHTML();
- htmlEditor.refresh();
- break;
- }
- }
-
-
-
-
-
-
%block>
diff --git a/common/lib/xmodule/xmodule/css/problem/edit.scss b/common/lib/xmodule/xmodule/css/problem/edit.scss
index 23ed576b0e..60e0c5431c 100644
--- a/common/lib/xmodule/xmodule/css/problem/edit.scss
+++ b/common/lib/xmodule/xmodule/css/problem/edit.scss
@@ -142,5 +142,35 @@
}
}
+.problem-editor-icon {
+ display: inline-block;
+ width: 26px;
+ height: 21px;
+ vertical-align: middle;
+ background: url(../img/problem-editor-icons.png) no-repeat;
+}
+
+.problem-editor-icon.multiple-choice {
+ background-position: 0 0;
+}
+
+.problem-editor-icon.checks {
+ background-position: -56px 0;
+}
+
+.problem-editor-icon.string {
+ width: 28px;
+ background-position: -111px 0;
+}
+
+.problem-editor-icon.number {
+ width: 24px;
+ background-position: -168px 0;
+}
+
+.problem-editor-icon.dropdown {
+ width: 17px;
+ background-position: -220px 0;
+}