anchor.diff:          ok.button('disable');
         }
       });
  -
       var end = initialFilename.lastIndexOf('.');
       if (end == -1) {
         end = initialFilename.length;
       }
       input[0].setSelectionRange(0, end);
  -
  -    dialog.dialog('open');
  +    fileOperationDialog.dialog('open');
     };
   
     // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  
positive.code: 
    var avatarName = "<%= @avatar.name %>";
    var fileButtons =  $('#file-operations');
    var newFile = fileButtons.find('#new')
    var renameFile = fileButtons.find('#rename')
    var deleteFile = fileButtons.find('#delete')
  
    newFile.click(function() {
      var initialFilename = 'filename' + cd.extensionFilename();
  
negative.code:     var div = $('<div>');
      div.append(input);
      div.append(img);
      var fileOperationDialog = div.dialog({
        closeOnEscape: true,
        close: function() { $(this).remove(); },
    	  title: cd.dialogTitle(name),
  