From 594161261971b3deed59f209b1ccb9381c8f283f Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Mon, 24 Sep 2012 14:15:23 +0000 Subject: [PATCH] [MRM-1672] Upload Artifact section doesn't clear uploaded artifacts. git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1389395 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/webapp/js/archiva/artifacts-management.js | 4 ++++ .../src/main/webapp/js/templates/archiva/general-admin.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/artifacts-management.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/artifacts-management.js index dfd1f94d7..73add9ed0 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/artifacts-management.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/artifacts-management.js @@ -56,6 +56,10 @@ define("archiva.artifacts-management",["jquery","i18n","utils","jquery.tmpl","kn 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); diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/general-admin.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/general-admin.html index a19894cf8..705d657c5 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/general-admin.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/general-admin.html @@ -638,7 +638,7 @@

- +
-- 2.39.5