anchor.diff:      div.append(input);
       const fileOperationDialog = div.dialog({
         closeOnEscape: true,
  -      close: function() {
  -        $(this).remove();
  -      },
     	  title: cd.dialogTitle(title),
       	autoOpen: false,
         width: 250,
  
positive.code: 
    const makeInput = (name, filename) => {
      const input = $('<input>', {
        type: 'text',
        id: name+'-filename',
        'name': name+'-filename',
        value: filename
      });
      if (name == 'delete') {
        input.attr('disabled', 'disabled');
  
negative.code:         ok.button('disable');
        }
      });
  
      const lastDot = initialFilename.lastIndexOf('.');
      const end = (lastDot != -1) ? lastDot : initialFilename.length;
      input[0].setSelectionRange(0, end);
  
      fileOperationDialog.dialog('open');
    };
  
  