diff --git a/www/drive/file.css b/www/drive/file.css index 4ac44552f..662ac6616 100644 --- a/www/drive/file.css +++ b/www/drive/file.css @@ -202,7 +202,7 @@ span.fa-folder-open { float: right; } #content li:not(.header) *:not(input) { - pointer-events: none; + /*pointer-events: none;*/ } #content li:not(.header):hover .name { text-decoration: underline; diff --git a/www/drive/file.less b/www/drive/file.less index fd18f54f3..7b6828fa8 100644 --- a/www/drive/file.less +++ b/www/drive/file.less @@ -244,7 +244,7 @@ span { li { &:not(.header) { *:not(input) { - pointer-events: none; + /*pointer-events: none;*/ } &:hover { .name { diff --git a/www/drive/main.js b/www/drive/main.js index 49f1a32fe..ad8852028 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -300,10 +300,10 @@ define([ }); $input.on('keyup', function (e) { if (e.which === 13) { + removeInput(); filesOp.renameElement(path, $input.val(), function () { refresh(); }); - removeInput(); } }); //$element.parent().append($input);