]> source.dussan.org Git - archiva.git/commitdiff
fix doc navigation and add missing i18n
authorOlivier Lamy <olamy@apache.org>
Fri, 5 Oct 2012 13:43:02 +0000 (13:43 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 5 Oct 2012 13:43:02 +0000 (13:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1394517 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-web-common/src/main/resources/org/apache/archiva/i18n/default.properties
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/docs.js

index 9742d40f14ac5d288de3659f4bc574f8272ca7c0..bad4f58f99ea6a2ec58a5dd785aecb6c5dff80f9 100644 (file)
@@ -498,3 +498,7 @@ proxy-connector-rule.pattern.already.exists=Same ProxyConnector rule already exi
 proxy-connector-rule.pattern.connectors.empty=You must select proxyConnectors.
 
 
+menu.docs.users=User Documentation
+menu.docs.rest=REST Api
+docs.rest.header=REST Apis Documentations
+menu.docs=Documentation
index 6c05603edf452ea5493e8a16d4090c61dd17b588..e0fe2be9d87039f1ea51023be7bfa210978f656d 100644 (file)
@@ -39,17 +39,7 @@ define("archiva.docs",["jquery","i18n","jquery.tmpl","bootstrap"], function() {
   }
 
   displayArchivaRestDocs=function(){
-    $.log("displayArchivaRestDocs");
-    $("#main-content" ).html(mediumSpinnerImg());
-    $.ajax({
-      url:"rest-docs/rest-docs-archiva-rest-api/index.html",
-      type:"get",
-      dataType: "html",
-      success: function(data){
-        $("#main-content" ).html($("#rest_docs").tmpl());
-        $("#main-content" ).find("#rest_docs_content" ).html(data);
-      }
-    });
+    window.sammyArchivaApplication.setLocation("#rest-docs-archiva-rest-api/index.html");
   }
 
   loadRestDocs=function(docType, fullPath){