anchor.diff:    <div class="table-row">
       <button type="button"
               id="delete"
  +            data-title="<%= t('views.buttons.delete_file') %>"            
               class="tipped"
               value="<%= t('views.buttons.delete_file') %>">
         <%= t('views.buttons.delete_file') %>
  
positive.code: 
  $(document).ready(function() {
  
    var isEnabled = function(node) {
      return node.attr('disabled') !== 'disabled';
    };
    var fileButtons =  $('#file_operations');
        
    fileButtons.find('#new').click(function() {
  
negative.code:   });
    
    fileButtons.find('#rename').click(function() {
      var title = $(this).data('title');
      cd.renameFile(title, "<%= @avatar.name %>");
    });
    
    fileButtons.find('#delete').click(function() {
      var title = $(this).data('title');        
      cd.deleteFile(title, "<%= @avatar.name %>");
    });
    
  });
  