mirror of https://github.com/apache/archiva.git
escape in case of repo id with dot
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1382890 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e7381a56b1
commit
d13973dab5
|
@ -446,7 +446,7 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
|
||||||
if ($(calculatePopoverId(managedRepository)).html()){
|
if ($(calculatePopoverId(managedRepository)).html()){
|
||||||
// we ask stats all the time ? if no uncomment return
|
// we ask stats all the time ? if no uncomment return
|
||||||
//return;
|
//return;
|
||||||
$("#managedrepository-stats-"+managedRepository.id()).append(smallSpinnerImg());
|
$("#managedrepository-stats-"+escapeDot(managedRepository.id())).append(smallSpinnerImg());
|
||||||
}
|
}
|
||||||
var curRepo=managedRepository;
|
var curRepo=managedRepository;
|
||||||
var url = "restServices/archivaServices/managedRepositoriesService/getManagedRepositoryStatistics/"+managedRepository.id();
|
var url = "restServices/archivaServices/managedRepositoriesService/getManagedRepositoryStatistics/"+managedRepository.id();
|
||||||
|
@ -462,16 +462,16 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
|
||||||
var archivaRepositoryStatistics=mapArchivaRepositoryStatistics(data);
|
var archivaRepositoryStatistics=mapArchivaRepositoryStatistics(data);
|
||||||
archivaRepositoryStatistics.managedRepository=curRepo;
|
archivaRepositoryStatistics.managedRepository=curRepo;
|
||||||
var mainContent = $("#main-content");
|
var mainContent = $("#main-content");
|
||||||
mainContent.find("#managedrepository-stats-"+curRepo.id()).append($("#managed-repository-stats-tmpl").tmpl(archivaRepositoryStatistics));
|
mainContent.find("#managedrepository-stats-"+escapeDot(curRepo.id())).append($("#managed-repository-stats-tmpl").tmpl(archivaRepositoryStatistics));
|
||||||
mainContent.find("#managedrepository-stats-img-"+curRepo.id()).attr("data-content",$(calculatePopoverId(curRepo)).html());
|
mainContent.find("#managedrepository-stats-img-"+escapeDot(curRepo.id())).attr("data-content",$(calculatePopoverId(curRepo)).html());
|
||||||
mainContent.find("#managedrepository-stats-img-"+curRepo.id()).popover(
|
mainContent.find("#managedrepository-stats-img-"+escapeDot(curRepo.id())).popover(
|
||||||
{
|
{
|
||||||
placement: "left",
|
placement: "left",
|
||||||
html: true
|
html: true
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
mainContent.find("#managedrepository-stats-img-"+curRepo.id()).popover('show');
|
mainContent.find("#managedrepository-stats-img-"+escapeDot(curRepo.id())).popover('show');
|
||||||
removeSmallSpinnerImg();
|
removeSmallSpinnerImg();
|
||||||
},
|
},
|
||||||
error: function(data) {
|
error: function(data) {
|
||||||
|
@ -485,7 +485,7 @@ define("archiva.repositories",["jquery","i18n","jquery.tmpl","bootstrap","jquery
|
||||||
}
|
}
|
||||||
|
|
||||||
calculatePopoverId=function(managedRepository){
|
calculatePopoverId=function(managedRepository){
|
||||||
return "#main-content #managedrepository-stats-"+managedRepository.id() + " #managedrepository-stats-"+managedRepository.id()+"-popover";
|
return "#main-content #managedrepository-stats-"+escapeDot(managedRepository.id()) + " #managedrepository-stats-"+escapeDot(managedRepository.id())+"-popover";
|
||||||
}
|
}
|
||||||
|
|
||||||
hideStats=function(managedRepository){
|
hideStats=function(managedRepository){
|
||||||
|
|
Loading…
Reference in New Issue