diff --git a/cms/static/client_templates/metadata_editor.html b/cms/static/client_templates/metadata_editor.html index 92f053ca9f..bf618bd6f1 100644 --- a/cms/static/client_templates/metadata_editor.html +++ b/cms/static/client_templates/metadata_editor.html @@ -1,9 +1,7 @@ -
- -
\ No newline at end of file + \ 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 eeda00638a..8a6db67e3a 100644 --- a/cms/static/coffee/src/views/module_edit.coffee +++ b/cms/static/coffee/src/views/module_edit.coffee @@ -8,6 +8,7 @@ class CMS.Views.ModuleEdit extends Backbone.View "click .component-actions .edit-button": 'clickEditButton' "click .component-actions .delete-button": 'onDelete' + initialize: -> @onDelete = @options.onDelete @render() diff --git a/cms/templates/widgets/html-edit.html b/cms/templates/widgets/html-edit.html index 7c4a1bde7b..17f86a89dc 100644 --- a/cms/templates/widgets/html-edit.html +++ b/cms/templates/widgets/html-edit.html @@ -1,4 +1,3 @@ -<%include file="metadata-edit.html" />
+<%include file="metadata-edit.html" /> diff --git a/cms/templates/widgets/metadata-edit.html b/cms/templates/widgets/metadata-edit.html index c1e2654724..8367011c42 100644 --- a/cms/templates/widgets/metadata-edit.html +++ b/cms/templates/widgets/metadata-edit.html @@ -8,7 +8,7 @@ % if 'source_code' in json_metadata_data: <% del json_metadata_data['source_code'] %> % endif -
+
% if showHighLevelSource: Edit High Level Source diff --git a/cms/templates/widgets/problem-edit.html b/cms/templates/widgets/problem-edit.html index 908112cd01..e2856d731a 100644 --- a/cms/templates/widgets/problem-edit.html +++ b/cms/templates/widgets/problem-edit.html @@ -1,4 +1,3 @@ -<%include file="metadata-edit.html" />
@@ -106,4 +105,5 @@
-
\ No newline at end of file +
+<%include file="metadata-edit.html" /> \ No newline at end of file diff --git a/cms/templates/widgets/raw-edit.html b/cms/templates/widgets/raw-edit.html index be41fad887..2b1b0f9ef3 100644 --- a/cms/templates/widgets/raw-edit.html +++ b/cms/templates/widgets/raw-edit.html @@ -1,6 +1,6 @@ -<%include file="metadata-edit.html" />
+<%include file="metadata-edit.html" /> diff --git a/cms/templates/widgets/sequence-edit.html b/cms/templates/widgets/sequence-edit.html index c70f2568fa..7956fbfbaf 100644 --- a/cms/templates/widgets/sequence-edit.html +++ b/cms/templates/widgets/sequence-edit.html @@ -29,7 +29,6 @@
- <%include file="metadata-edit.html" />
    @@ -50,5 +49,6 @@
+ <%include file="metadata-edit.html" />