fixed notes logic
This commit is contained in:
parent
f0f14c8eab
commit
1e689bfba3
6 changed files with 109 additions and 79 deletions
|
@ -2,27 +2,12 @@
|
|||
= render "notes/form"
|
||||
.clear
|
||||
%hr
|
||||
%ul#new_notes_list
|
||||
%ul#notes-list
|
||||
.loading
|
||||
.status
|
||||
|
||||
|
||||
:javascript
|
||||
$('.delete-note').live('ajax:success', function() {
|
||||
$(this).closest('li').fadeOut(); });
|
||||
|
||||
$("#new_note").live("ajax:before", function(){
|
||||
$("#submit_note").attr("disabled", "disabled");
|
||||
})
|
||||
|
||||
$("#new_note").live("ajax:complete", function(){
|
||||
$("#submit_note").removeAttr("disabled");
|
||||
})
|
||||
|
||||
$(function(){
|
||||
$("#note_note").live("click", function(){
|
||||
$(this).css("height", "100px");
|
||||
$('.attach_holder').show();
|
||||
});
|
||||
|
||||
NoteList.init("#{tid}", "#{tt}", "#{project_notes_path(@project)}");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue