29 lines
647 B
Plaintext
29 lines
647 B
Plaintext
- if can? current_user, :write_note, @project
|
|
= render "notes/form"
|
|
.clear
|
|
%hr
|
|
%ul#notes-list
|
|
.loading
|
|
|
|
|
|
: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)}");
|
|
});
|