"git@code.librehq.com:ots/hypha.git" did not exist on "cfcd5571591ada9d600f3b6ebb725788203ced89"
Newer
Older
(function ($) {
'use strict';
function listInputFiles() {
// remove any existing files first
$(this).siblings('.form__file').remove();
for (let i = 0; i < $(this)[0].files.length; ++i) {
$(this).parents('.form__item').prepend(`
<p class="form__file">${$(this)[0].files[i].name}</p>
`);
}
});
}
// Show list of selected files for upload on input[type=file]
listInputFiles();
})(jQuery);