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