diff --git a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js index 6c34a8ff3..6ac851f75 100644 --- a/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js +++ b/archiva-modules/archiva-web/archiva-webapp-js/src/main/webapp/js/archiva/search.js @@ -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,">"); 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,">"); mainContent.find("#artifact-content-text" ).html(smallSpinnerImg()); mainContent.find("#artifact-content-text" ).html(text);