anchor.diff:          ok.button('disable');
         }
       });
  +
       const lastDot = initialFilename.lastIndexOf('.');
       const end = (lastDot != -1) ? lastDot : initialFilename.length;
       input[0].setSelectionRange(0, end);
  +
       fileOperationDialog.dialog('open');
     };
   
  
positive.code:     div.append(input);
      const fileOperationDialog = div.dialog({
        closeOnEscape: true,
        close: function() {
          $(this).remove();
        },
    	  title: cd.dialogTitle(title),
      	autoOpen: false,
        width: 250,
  
negative.code:         $(this).remove();
        }
      };
      // dialog has a [close] button
      const cancel = {
        text: 'cancel',
        click: function() {
  