Skip to content
Snippets Groups Projects
Commit 249cb19d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix project update. Make slim form only for reversed comments

parent 7cce2b15
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -34,16 +34,21 @@ var NoteList = {
 
disableButtonIfEmptyField(".note-text", ".submit_note");
 
$(".note-text").on("focus", function(){
$(this).css("height", "80px");
$('.note_advanced_opts').show();
});
$("#note_attachment").change(function(e){
var val = $('.input-file').val();
var filename = val.replace(/^.*[\\\/]/, '');
$(".file_name").text(filename);
});
if(this.reversed) {
var textarea = $(".note-text");
$('.note_advanced_opts').hide();
textarea.css("height", "40px");
textarea.on("focus", function(){
$(this).css("height", "80px");
$('.note_advanced_opts').show();
});
}
},
 
 
Loading
Loading
Loading
Loading
@@ -10,13 +10,6 @@
padding:0px;
}
 
#new-notes-list:not(.reversed) {
border-top:1px solid #aaa;
}
#new-notes-list.reversed {
border-bottom:1px solid #ccc;
}
.issue_notes,
.wiki_notes {
.note_content {
Loading
Loading
@@ -33,9 +26,6 @@
}
 
#new_note {
.note-text {
height:40px;
}
.attach_holder {
display:none;
}
Loading
Loading
Loading
Loading
@@ -14,7 +14,7 @@
.right Comments are parsed with #{link_to "GitLab Flavored Markdown", help_markdown_path, target: '_blank'}.
.clearfix
 
.row.note_advanced_opts.hide
.row.note_advanced_opts
.span3
= f.submit 'Add Comment', class: "btn success submit_note grouped", id: "submit_note"
= link_to 'Preview', preview_project_notes_path(@project), class: 'btn grouped', id: 'preview-link'
Loading
Loading
Loading
Loading
@@ -8,4 +8,4 @@
:javascript
$(function(){
NoteList.init("#{tid}", "#{tt}", "#{project_notes_path(@project)}");
});
\ No newline at end of file
});
Loading
Loading
@@ -3,10 +3,10 @@
%h3.page_title Edit Project
%hr
= render "projects/form"
%div.ajax_loader.hide
%div.save-project-loader.hide
%center
%div.padded= image_tag "ajax_loader.gif"
%h3.prepend-top Saving project & repository. Please wait...
= image_tag "ajax_loader.gif"
%h3 Saving project. Please wait a few minutes
 
:javascript
$(function(){ new Projects(); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment