Don't show file extension in the rename file dialog

This commit is contained in:
Julia Radzhabova 2018-09-25 14:25:23 +03:00
parent 544e17e96f
commit 0a819bf668

View file

@ -94,6 +94,9 @@ define([
Common.UI.Window.prototype.show.apply(this, arguments);
var me = this;
var idx = me.options.filename.lastIndexOf('.');
if (idx>0)
me.options.filename = me.options.filename.substring(0, idx);
_.delay(function(){
me.inputName.setValue(me.options.filename);
me.inputNameEl.focus().select();