mirror of
https://github.com/flarum/framework.git
synced 2025-05-01 17:14:05 +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
25f57c459d
commit
dc21666215
@ -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 HasItemLists from 'flarum/mixins/has-item-lists';
|
||||||
import SearchInput from 'flarum/components/ui/search-input';
|
import SearchInput from 'flarum/components/ui/search-input';
|
||||||
import UserDropdown from 'flarum/components/application/user-dropdown';
|
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 ForumStatistic from 'flarum/components/application/forum-statistic';
|
||||||
import PoweredBy from 'flarum/components/application/powered-by';
|
import PoweredBy from 'flarum/components/application/powered-by';
|
||||||
|
|
||||||
@ -81,8 +80,6 @@ export default Ember.View.extend(HasItemLists, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
populateFooterPrimary: function(items) {
|
populateFooterPrimary: function(items) {
|
||||||
items.pushObjectWithTag(GoToTop.create(), 'top');
|
|
||||||
|
|
||||||
var addStatistic = function(label, number) {
|
var addStatistic = function(label, number) {
|
||||||
items.pushObjectWithTag(ForumStatistic.create({
|
items.pushObjectWithTag(ForumStatistic.create({
|
||||||
label: label,
|
label: label,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user