]> source.dussan.org Git - archiva.git/commitdiff
do not reload all the screen
authorOlivier Lamy <olamy@apache.org>
Sat, 6 Oct 2012 15:12:09 +0000 (15:12 +0000)
committerOlivier Lamy <olamy@apache.org>
Sat, 6 Oct 2012 15:12:09 +0000 (15:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1395090 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/docs.js
archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/docs.html

index 4ee4c0052204acc3b8d32fdfdced99d90fbda70f..6acdf1205d7290b102cfecf66cf53051128e679b 100644 (file)
@@ -25,7 +25,7 @@ define("archiva.docs",["jquery","i18n","jquery.tmpl","bootstrap"], function() {
   }
 
   goToArchivaRestDoc=function(target){
-    $("#main-content" ).html(mediumSpinnerImg());
+    $("#main-content" ).find("#rest_docs_content" ).html(mediumSpinnerImg());
     $.ajax({
       url:"rest-docs/rest-docs-archiva-rest-api/"+target,
       type:"get",
@@ -39,7 +39,7 @@ define("archiva.docs",["jquery","i18n","jquery.tmpl","bootstrap"], function() {
   }
 
   goToArchivaRestUiDoc=function(target){
-    $("#main-content" ).html(mediumSpinnerImg());
+    $("#main-content" ).find("#rest_docs_content" ).html(mediumSpinnerImg());
     $.ajax({
       url:"rest-docs/rest-docs-archiva-ui/"+target,
       type:"get",
@@ -53,7 +53,7 @@ define("archiva.docs",["jquery","i18n","jquery.tmpl","bootstrap"], function() {
   }
 
   goToRedbackRestDoc=function(target){
-    $("#main-content" ).html(mediumSpinnerImg());
+    $("#main-content" ).find("#rest_docs_content" ).html(mediumSpinnerImg());
     $.ajax({
       url:"rest-docs/rest-docs-redback-rest-api/"+target,
       type:"get",
index 13a7fd856258303bbc97a7b5297b93153d1d2c61..f33d0bfdea50b77ff0d2d83b72a2cfd6e6be6419 100644 (file)
@@ -18,7 +18,7 @@
 -->
 
 <script id="rest_docs" type="text/html">
-    <div>
+    <div id="rest-doc-header">
       <div class="page-header">
         <div><b>${$.i18n.prop('docs.rest.header')}</b></div>
       </div>