Ver Fonte

[importer] same file re-upload (#2970)

Ayush Goyal há 3 anos atrás
pai
commit
c6861365d7

+ 4 - 0
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -3225,6 +3225,10 @@ ${ commonheader(_("Importer"), "indexer", user, request, "60px") | n,unicode }
 
       $(window).on('resize', resizeElements);
 
+      document.getElementById('inputfile').onclick = function () {
+        this.value = null;
+      };
+
       document.getElementById('inputfile').onchange = function () {
         upload();
       };