w.parent.closeWindows();
                    event.preventDefault();
                }
            }
        }).activate();

        window.addEvent('domready', function() {
            const hash = new URI().getData('hash');
            const oldPath = new URI().getData('path');
            const isFolder = ((new URI().getData('isFolder')) === 'true');

            const oldName = window.qBittorrent.Filesystem.fileName(oldPath);
            $('rename').value = oldName;
            $('rename').focus();
    