#987102 by Jeff Burnz, tim.plunkett: Fixed Preview logo not removed when logo theme setting is off in Bartik

merge-requests/26/head
Angie Byron 2010-12-11 21:37:41 +00:00
parent b9a0db2fb2
commit 3361b3bfc2
2 changed files with 6 additions and 1 deletions

View File

@ -29,7 +29,7 @@ html.js #preview {
}
#preview-logo {
float: left;
padding: 15px 30px 15px 10px;
padding: 15px 15px 15px 10px;
}
#preview-site-name {
color: #686868;
@ -37,6 +37,7 @@ html.js #preview {
font-size: 1.821em;
line-height: 1;
margin-bottom: 30px;
margin-left: 15px;
padding-top: 34px;
}
#preview-main-menu {

View File

@ -9,6 +9,10 @@
$('#preview #preview-logo img').attr('src', Drupal.settings.color.logo);
this.logoChanged = true;
}
// Remove the logo if the setting is toggled off.
if (Drupal.settings.color.logo == null) {
$('div').remove('#preview-logo');
}
// Solid background.
$('#preview', form).css('backgroundColor', $('#palette input[name="palette[bg]"]', form).val());