url: pomContentUrl,
dataType: "text",
success: function(data) {
- $.log("foo");
- $.log("data:"+data);
var text = data.replace(/</g,'<');
text=text.replace(/>/g,">");
mainContent.find("#artifact-content-text" ).html(text);
+ goToAnchor("artifact-content-text-header");
}
});
return;
var text = data.replace(/</g,'<');
text=text.replace(/>/g,">");
mainContent.find("#artifact-content-text" ).html(text);
+ goToAnchor("artifact-content-text-header");
}
});
}
return sorted?res.sort():res;
}
+ goToAnchor=function(anchor){
+ var curHref = window.location.href;
+ curHref=curHref.substringBeforeLast("#");
+ window.location.href=curHref+"#"+anchor;
+ }
+
//------------------------------------
// utils javascript string extensions
//------------------------------------