Remove the go to top button

It’s not particularly useful when there are fixed elements all over the
page (header, sidebar)
This commit is contained in:
Toby Zerner 2015-02-13 09:46:22 +10:30
parent 681de4244b
commit fa3523ac74
2 changed files with 0 additions and 15 deletions

View File

@ -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});
}
})

View File

@ -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,