]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1577] rewrite legacy path admin page
authorOlivier Lamy <olamy@apache.org>
Tue, 6 Mar 2012 18:32:20 +0000 (18:32 +0000)
committerOlivier Lamy <olamy@apache.org>
Tue, 6 Mar 2012 18:32:20 +0000 (18:32 +0000)
remove entry done.

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1297640 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/general-admin.js

index b74afdf94b578ab87d9d239ae0ac284abcd2157b..55428825da98c72a9baa1c6633b8ff352e499d36 100644 (file)
@@ -203,7 +203,21 @@ $(function() {
     }
 
     removeLegacyArtifactPath=function(legacyArtifactPath){
-
+      $.ajax("restServices/archivaServices/archivaAdministrationService/deleteLegacyArtifactPath?path="+encodeURIComponent(legacyArtifactPath.path()),
+        {
+          type: "GET",
+          dataType: 'json',
+          success: function(data) {
+            self.legacyArtifactPaths.remove(legacyArtifactPath);
+            displaySuccessMessage($.i18n.prop('legacy-artifact-path.removed',legacyArtifactPath.path()));
+            activateLegacyArtifactPathsGridTab();
+          },
+          error: function(data) {
+            var res = $.parseJSON(data.responseText);
+            displayRestError(res);
+          }
+        }
+      );
     }
 
     updateLegacyArtifactPath=function(legacyArtifactPath){