From e3a794ca9f65b4bc5a3ac5f85c641265d256a43c Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Sat, 6 Oct 2012 15:12:09 +0000 Subject: [PATCH] do not reload all the screen git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1395090 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva-webapp-js/src/main/webapp/js/archiva/docs.js | 6 +++--- .../src/main/webapp/js/templates/archiva/docs.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/docs.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/docs.js index 4ee4c0052..6acdf1205 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/docs.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/docs.js @@ -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", diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/docs.html b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/docs.html index 13a7fd856..f33d0bfde 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/docs.html +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/templates/archiva/docs.html @@ -18,7 +18,7 @@ -->