mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 10:14:16 +08:00
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:
parent
681de4244b
commit
fa3523ac74
|
@ -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});
|
||||
}
|
||||
})
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user