Merge pull request #323 from wknet123/master

update for listing repo name contains dot.
This commit is contained in:
kun wang 2016-06-07 18:09:10 +08:00
commit 2784e72151

View File

@ -62,7 +62,7 @@ jQuery(function(){
return;
}
$.each(data, function(i, e){
var targetId = e.replace(/\//g, "------");
var targetId = e.replace(/\//g, "------").replace(/\./g, "---");
var row = '<div class="panel panel-default" targetId="' + targetId + '">' +
'<div class="panel-heading" role="tab" id="heading' + i + '"+ >' +
'<h4 class="panel-title">' +
@ -105,7 +105,7 @@ jQuery(function(){
$('#accordionRepo').on('show.bs.collapse', function (e) {
$('#accordionRepo .in').collapse('hide');
var targetId = $(e.target).attr("targetId");
var repoName = targetId.replace(/------/g, "/");
var repoName = targetId.replace(/[-]{6}/g, "/").replace(/[-]{3}/g, ".");
new AjaxUtil({
url: "/api/repositories/tags?repo_name=" + repoName,
type: "get",