fix ui due to data structure change

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1341939 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-05-23 16:26:47 +00:00
parent e14e4969be
commit dd2be37ed9
1 changed files with 2 additions and 4 deletions

View File

@ -293,9 +293,8 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock
mainContent.find("#artifact-content-text" ).html(smallSpinnerImg());
$.ajax({
url: pomContentUrl,
dataType: "text",
success: function(data) {
var text = data.replace(/</g,'&lt;');
var text = data.content.replace(/</g,'&lt;');
text=text.replace(/>/g,"&gt;");
mainContent.find("#artifact-content-text" ).html(text);
prettyPrint();
@ -327,9 +326,8 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock
fileContentUrl+="&p="+encodeURIComponent(file.substringBeforeLast("/"));
$.ajax({
url: fileContentUrl,
dataType: "text",
success: function(data) {
var text = data.replace(/</g,'&lt;');
var text = data.content.replace(/</g,'&lt;');
text=text.replace(/>/g,"&gt;");
mainContent.find("#artifact-content-text" ).html(smallSpinnerImg());
mainContent.find("#artifact-content-text" ).html(text);