fixed notes logic

This commit is contained in:
Dmitriy Zaporozhets 2012-02-27 19:05:27 +02:00
parent f0f14c8eab
commit 1e689bfba3
6 changed files with 109 additions and 79 deletions

View file

@ -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)}");
});