move notes login to one controller

This commit is contained in:
Dmitriy Zaporozhets 2012-02-24 09:16:06 +02:00
parent 81092c0198
commit 215a01f63c
15 changed files with 55 additions and 46 deletions

View file

@ -2,7 +2,7 @@
= render "notes/form"
.clear
%hr
%ul#notes-list= render "notes/notes_list"
%ul#notes-list
:javascript
$('.delete-note').live('ajax:success', function() {
@ -22,5 +22,5 @@
$('.attach_holder').show();
});
NoteList.init("wall", #{@notes.last.try(:id) || 0}, #{@notes.first.try(:id) || 0});
NoteList.init("#{tid}", "#{tt}", "#{project_notes_path(@project)}");
});

View file

@ -0,0 +1 @@
= render "notes/load"