mirror of https://github.com/apache/archiva.git
fix issue rendering error
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1397247 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
deb9f97bcb
commit
7219873f2d
|
@ -287,6 +287,10 @@ require(["jquery","jquery.tmpl","i18n"], function(jquery,jqueryTmpl,i18n) {
|
|||
*/
|
||||
displayRestError=function(data,idToAppend){
|
||||
$.log("displayRestError");
|
||||
// maybe data is just the response so test if if we have a responseText and transform it to json
|
||||
if(data.responseText){
|
||||
data= $.parseJSON(data.responseText);
|
||||
}
|
||||
if (data.redbackRestError){
|
||||
displayRedbackError(archivaRestError,idToAppend)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue