If mobile view, don't switch to small logo in the header when scrolled down in a topic

This commit is contained in:
Neil Lalonde 2013-09-02 16:26:12 -04:00
parent 07e6956917
commit dc1efd6c78
1 changed files with 1 additions and 2 deletions

View File

@ -91,7 +91,6 @@ Discourse.HeaderView = Discourse.View.extend({
});
},
/**
Display the correct logo in the header, showing a custom small icon if it exists.
In case the logo_url setting is empty, shows the site title as the logo.
@ -99,7 +98,7 @@ Discourse.HeaderView = Discourse.View.extend({
**/
logoHTML: function() {
var result = "<div class='title'><a href='" + Discourse.getURL("/") + "'>";
if (this.get('controller.showExtraInfo')) {
if (!Discourse.Session.currentProp('mobileView') && this.get('controller.showExtraInfo')) {
var logoSmall = Discourse.SiteSettings.logo_small_url;
if (logoSmall && logoSmall.length > 1) {
result += "<img class='logo-small' src='" + logoSmall + "' width='33' height='33'>";