select all on rename

pull/1/head
d11e9 9 years ago
parent 833f2e5ade
commit 1df3b9ee4e
  1. 1
      index.html

@ -128,6 +128,7 @@ THE SOFTWARE.
var $fileNameInputEl = $('<input value="'+originalName+'"/>'); var $fileNameInputEl = $('<input value="'+originalName+'"/>');
$fileTabEl.html( $fileNameInputEl ) $fileTabEl.html( $fileNameInputEl )
$fileNameInputEl.focus() $fileNameInputEl.focus()
$fileNameInputEl.select()
$fileNameInputEl.on( 'blur', handleRename ) $fileNameInputEl.on( 'blur', handleRename )
$fileNameInputEl.keyup( handleRename ); $fileNameInputEl.keyup( handleRename );

Loading…
Cancel
Save