dataType: 'json',
success: function(data) {
displaySuccessMessage($.i18n.prop("fileupload.artifacts.saved"));
+ self.artifactUploads=[];
+ $("#main-content" ).find("#uploaded-files-list" ).html('');
+ $.ajax("restServices/archivaUiServices/fileUploadService/clearUploadedFiles", {type: "GET", dataType: 'json'});
+ clearForm("#main-content #fileupload");
},
error: function(data) {
var res = $.parseJSON(data.responseText);
<div class="fileupload-loading"></div>
<br>
<table class="table table-striped">
- <tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery"></tbody>
+ <tbody class="files" data-toggle="modal-gallery" data-target="#modal-gallery" id="uploaded-files-list"></tbody>
</table>
</form>