diff options
Diffstat (limited to 'app/views/projects/edit_tree/show.html.haml')
-rw-r--r-- | app/views/projects/edit_tree/show.html.haml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/projects/edit_tree/show.html.haml b/app/views/projects/edit_tree/show.html.haml index 101b479afed..25a361cb2fd 100644 --- a/app/views/projects/edit_tree/show.html.haml +++ b/app/views/projects/edit_tree/show.html.haml @@ -1,7 +1,7 @@ .file-editor = form_tag(project_edit_tree_path(@project, @id), method: :put, class: "form-horizontal") do - .file_holder - .file_title + .file-holder + .file-title %i.icon-file %span.file_name = @path @@ -11,7 +11,7 @@ %span.options .btn-group.tree-btn-group = link_to "Cancel", project_blob_path(@project, @id), class: "btn btn-tiny btn-cancel", confirm: leave_edit_message - .file_content.code + .file-content.code %pre#editor= @blob.data .control-group.commit_message-group @@ -21,7 +21,7 @@ = text_area_tag 'commit_message', '', placeholder: "Update #{@blob.name}", required: true, rows: 3 .form-actions = hidden_field_tag 'last_commit', @last_commit - = hidden_field_tag 'content', '', id: :file_content + = hidden_field_tag 'content', '', id: :file-content .commit-button-annotation = button_tag "Commit changes", class: 'btn commit-btn js-commit-button btn-primary' .message @@ -40,6 +40,6 @@ disableButtonIfEmptyField("#commit_message", ".js-commit-button"); $(".js-commit-button").click(function(){ - $("#file_content").val(editor.getValue()); + $("#file-content").val(editor.getValue()); $(".file-editor form").submit(); }); |