From 4c915f9e5a31e2f90d21897e4b7d1b3b7f07f547 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 22 Sep 2021 14:05:05 +0200 Subject: [PATCH] Don't show the upload button until we're ready to draw files in the file picker --- www/secureiframe/inner.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/secureiframe/inner.js b/www/secureiframe/inner.js index 18970c47b..0ae5d6ae8 100644 --- a/www/secureiframe/inner.js +++ b/www/secureiframe/inner.js @@ -171,7 +171,7 @@ define([ $block.append(h('p', text)); // Add filter input - var $filter = $(h('p.cp-modal-form')).appendTo($block); + var $filter = $(h('p.cp-modal-form')).hide().appendTo($block); var to; var $input = $('', { type: 'text', @@ -211,6 +211,7 @@ define([ updateContainer = function () { var filter = $input.val().trim(); var todo = function (err, list) { + $filter.show(); if (err) { return void console.error(err); } $container.html(''); Object.keys(list).forEach(function (id) {