diff --git a/copyparty/web/browser.js b/copyparty/web/browser.js
index 2bb4b79e..0bbd32b1 100644
--- a/copyparty/web/browser.js
+++ b/copyparty/web/browser.js
@@ -5570,7 +5570,6 @@ var thegrid = (function () {
var ths = QSA('#ggrid>a');
for (var a = 0, aa = ths.length; a < aa; a++) {
- if(ths[a].id == 'temp') continue;
var tr = ebi(ths[a].getAttribute('ref')).closest('tr'),
cl = tr.className || '';
@@ -9515,25 +9514,20 @@ var rcm = (function () {
var selFile = jcp(nsFile);
function mktemp(is_dir) {
- if(!thegrid.en) {
- var row = mknod('tr', 'temp',
- '
-new- | ' +
- ' | '
- );
+ qsr('#rcm_tmp');
+ if (!thegrid.en) {
+ var row = mknod('tr', 'rcm_tmp',
+ '-new- | | ');
QS("#files tbody").appendChild(row);
}
- else{
- var row = mknod('a', 'temp',
- ''
- );
- // TODO: using some inline theming here. not good?
- if(is_dir) {
- row.className = 'dir'; // add folder icon
- }
- row.style = "display: flex;"; // lets us align text entry box to the bottom
+ else {
+ var row = mknod('a', 'rcm_tmp',
+ '');
+ if (is_dir)
+ row.className = 'dir';
+ row.style.display = 'flex';
QS("#ggrid").appendChild(row);
}
-
function sendit(name) {
name = ('' + name).trim();
@@ -9567,7 +9561,7 @@ var rcm = (function () {
sendit(input.value);
if (e.key == "Enter" || e.key == "Escape") {
input.onblur = null;
- row.remove();
+ row.remove();
ev(e);
}
};