1
0
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:
Toby Zerner
2015-01-30 12:13:06 +10:30
parent 9938c346a1
commit d43db32698
3 changed files with 5 additions and 25 deletions

View File

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