From fa3523ac74c6ff2a0d294050df5b3a08231340d5 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 13 Feb 2015 09:46:22 +1030 Subject: [PATCH] Remove the go to top button MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s not particularly useful when there are fixed elements all over the page (header, sidebar) --- ember/app/components/application/go-to-top.js | 12 ------------ ember/app/views/application.js | 3 --- 2 files changed, 15 deletions(-) delete mode 100644 ember/app/components/application/go-to-top.js diff --git a/ember/app/components/application/go-to-top.js b/ember/app/components/application/go-to-top.js deleted file mode 100644 index eb5e0fdc9..000000000 --- a/ember/app/components/application/go-to-top.js +++ /dev/null @@ -1,12 +0,0 @@ -import Ember from 'ember'; - -import ActionButton from 'flarum/components/ui/action-button'; - -export default ActionButton.extend({ - title: 'Go to Top', - icon: 'arrow-up', - className: 'control-top', - action: function() { - $('html, body').stop(true).animate({scrollTop: 0}); - } -}) diff --git a/ember/app/views/application.js b/ember/app/views/application.js index 6fe0117dd..bbd6cb34e 100644 --- a/ember/app/views/application.js +++ b/ember/app/views/application.js @@ -3,7 +3,6 @@ import Ember from 'ember'; import HasItemLists from 'flarum/mixins/has-item-lists'; import SearchInput from 'flarum/components/ui/search-input'; import UserDropdown from 'flarum/components/application/user-dropdown'; -import GoToTop from 'flarum/components/application/go-to-top'; import ForumStatistic from 'flarum/components/application/forum-statistic'; import PoweredBy from 'flarum/components/application/powered-by'; @@ -81,8 +80,6 @@ export default Ember.View.extend(HasItemLists, { }, populateFooterPrimary: function(items) { - items.pushObjectWithTag(GoToTop.create(), 'top'); - var addStatistic = function(label, number) { items.pushObjectWithTag(ForumStatistic.create({ label: label,