tree rename dialog - focus filename without extension

focus only the relevant part of the filename on rename dialog
this selects all prior to the first dot in the filename
pull/131/head
hiaselhans 11 years ago
parent 5c18ecb151
commit 23cc03ed9d

@ -663,7 +663,12 @@ define([
return false;
}
});
input.focus().select();
input.focus();
if (input.val().indexOf(".") > 0) {
input[0].setSelectionRange(0,input.val().indexOf("."));
} else {
input.select();
}
}
});
};

Loading…
Cancel
Save