anchor.diff:      // Don't navigate on cancel.
       e.preventDefault();
     } );
  -
  +  // for deleting files and pages from the overview
     $('.delete-file').click( function(e) {
       var ok = confirm($(this).data('confirm'));
       if ( ok ) {
  
positive.code: 
  // ua
  $(document).ready(function() {
    $('#delete-link').click( function(e) {
      var ok = confirm($(this).data('confirm'));
      if ( ok ) {
  
negative.code:       $.post('<%=delete_path %>' + $(this).data('file-path'),
          {},
          function (result) {
            // file successfully deleted, stay on overview but remove element from DOM
            element.closest("li").remove();
          });
      }
  