mirror of https://github.com/apache/archiva.git
fix topbar organization logo
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1386505 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ba4ff9319e
commit
f4dcb03c71
|
@ -127,15 +127,16 @@ function(jquery,ui,sammy,tmpl) {
|
|||
dataType: 'json',
|
||||
success: function(data) {
|
||||
//var disableRegistration=data.disableRegistration;
|
||||
var topbarMenu=$("#topbar-menu");
|
||||
if( data){
|
||||
$.log("disableRegistration");
|
||||
$("#topbar-menu").find("#register-link" ).hide();
|
||||
topbarMenu.find("#register-link" ).hide();
|
||||
}
|
||||
$.ajax("restServices/archivaServices/archivaAdministrationService/getOrganisationInformation", {
|
||||
type: "GET",
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
var organisationLogo=$("#main-content").find("#organisation-logo");
|
||||
var organisationLogo=topbarMenu.find("#organisation-logo");
|
||||
if(data.url){
|
||||
var url = data.url.startsWith("http://") || data.url.startsWith("https://") ? data.url : "http://"+data.url;
|
||||
var link="<a href='"+url+"' class='brand'>";
|
||||
|
|
Loading…
Reference in New Issue