From 07dd4accfecae107d174c0ac867ee16afdfb78c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Sun, 16 Dec 2018 13:13:14 +0100 Subject: [PATCH] misc: set has-file class after selecting a file from fargo (#29096) --- wcs/qommon/static/js/fargo.js | 1 + 1 file changed, 1 insertion(+) diff --git a/wcs/qommon/static/js/fargo.js b/wcs/qommon/static/js/fargo.js index 1f0807fc8..40115cd50 100644 --- a/wcs/qommon/static/js/fargo.js +++ b/wcs/qommon/static/js/fargo.js @@ -48,6 +48,7 @@ $(function() { $(base_widget).find('input[type=file]').hide(); $(base_widget).find('.use-file-from-fargo').hide(); $(base_widget).find('input[type=file]').trigger('change'); + $(base_widget).addClass('has-file').removeClass('has-no-file'); } document.fargo_close_dialog(); }