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:
Olivier Lamy 2012-09-17 08:24:27 +00:00
parent ba4ff9319e
commit f4dcb03c71
1 changed files with 3 additions and 2 deletions

View File

@ -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'>";