From dc1efd6c78cffff9f86335209ff7badbc919405c Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 2 Sep 2013 16:26:12 -0400 Subject: [PATCH] If mobile view, don't switch to small logo in the header when scrolled down in a topic --- app/assets/javascripts/discourse/views/header_view.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/views/header_view.js b/app/assets/javascripts/discourse/views/header_view.js index 7b6670d73dd..03abe05a275 100644 --- a/app/assets/javascripts/discourse/views/header_view.js +++ b/app/assets/javascripts/discourse/views/header_view.js @@ -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 = "
"; - 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 += "";