anchor.diff:  
   // ua
   $(document).ready(function() {
  +  // for deleting the current page
     $('#delete-link').click( function(e) {
       var ok = confirm($(this).data('confirm'));
       if ( ok ) {
  
positive.code:     // Don't navigate on cancel.
      e.preventDefault();
    } );
  
    $('.delete-file').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();
          });
      }
  