        if (!isFolder)
                $('rename').setSelectionRange(0, oldName.lastIndexOf('.'));

            $('renameButton').addEvent('click', function(e) {
                new Event(e).stop();
                // check field
                const newName = $('rename').value.trim();
                if (newName === '') {
                    alert('QBT_TR(Name cannot be empty)QBT_TR[CONTEXT=HttpServer]');
                    return;
                }

                if (newName === oldName) {
           