Fix project update. Make slim form only for reversed comments
This commit is contained in:
parent
7cce2b1506
commit
249cb19d96
5 changed files with 15 additions and 20 deletions
|
@ -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();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
@ -33,9 +26,6 @@
|
|||
}
|
||||
|
||||
#new_note {
|
||||
.note-text {
|
||||
height:40px;
|
||||
}
|
||||
.attach_holder {
|
||||
display:none;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue