gitlabhq/app/views/notes/_notes.html.haml

21 lines
498 B
Plaintext
Raw Normal View History

2011-10-17 18:48:10 +02:00
%ul#notes-list= render "notes/notes_list"
2011-10-08 23:36:38 +02:00
%br
%br
- if can? current_user, :write_note, @project
= render "notes/form"
:javascript
$('.delete-note').live('ajax:success', function() {
$(this).closest('li').fadeOut(); });
2011-10-17 18:48:10 +02:00
- if ["issues", "projects"].include?(controller.controller_name)
:javascript
$(function(){
var int =self.setInterval("updatePage()", 20000);
});
2011-10-08 23:36:38 +02:00
2011-10-17 18:48:10 +02:00
function updatePage(){
$.ajax({type: "GET", url: location.href, dataType: "script"});
}