mirror of
https://github.com/flarum/core.git
synced 2025-08-13 11:54:32 +02:00
Make welcome-hero close into an action
This commit is contained in:
@@ -5,11 +5,10 @@ export default Ember.Component.extend({
|
||||
tagName: 'header',
|
||||
classNames: ['hero', 'welcome-hero'],
|
||||
|
||||
didInsertElement: function() {
|
||||
var hero = this.$();
|
||||
hero.find('.close').click(function() {
|
||||
hero.slideUp();
|
||||
});
|
||||
actions: {
|
||||
close: function() {
|
||||
this.$().slideUp();
|
||||
}
|
||||
}
|
||||
|
||||
});
|
Reference in New Issue
Block a user