mirror of https://github.com/apache/archiva.git
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:
parent
e14e4969be
commit
dd2be37ed9
|
@ -293,9 +293,8 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock
|
||||||
mainContent.find("#artifact-content-text" ).html(smallSpinnerImg());
|
mainContent.find("#artifact-content-text" ).html(smallSpinnerImg());
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: pomContentUrl,
|
url: pomContentUrl,
|
||||||
dataType: "text",
|
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
var text = data.replace(/</g,'<');
|
var text = data.content.replace(/</g,'<');
|
||||||
text=text.replace(/>/g,">");
|
text=text.replace(/>/g,">");
|
||||||
mainContent.find("#artifact-content-text" ).html(text);
|
mainContent.find("#artifact-content-text" ).html(text);
|
||||||
prettyPrint();
|
prettyPrint();
|
||||||
|
@ -327,9 +326,8 @@ define("search",["jquery","i18n","jquery.tmpl","choosen","order!knockout","knock
|
||||||
fileContentUrl+="&p="+encodeURIComponent(file.substringBeforeLast("/"));
|
fileContentUrl+="&p="+encodeURIComponent(file.substringBeforeLast("/"));
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: fileContentUrl,
|
url: fileContentUrl,
|
||||||
dataType: "text",
|
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
var text = data.replace(/</g,'<');
|
var text = data.content.replace(/</g,'<');
|
||||||
text=text.replace(/>/g,">");
|
text=text.replace(/>/g,">");
|
||||||
mainContent.find("#artifact-content-text" ).html(smallSpinnerImg());
|
mainContent.find("#artifact-content-text" ).html(smallSpinnerImg());
|
||||||
mainContent.find("#artifact-content-text" ).html(text);
|
mainContent.find("#artifact-content-text" ).html(text);
|
||||||
|
|
Loading…
Reference in New Issue