framework/ember/app/views/signup.js

20 lines
514 B
JavaScript
Raw Normal View History

2015-02-08 13:29:39 +08:00
import Ember from 'ember';
import ModalView from 'flarum/mixins/modal-view';
2015-02-08 13:29:39 +08:00
export default Ember.View.extend(ModalView, {
classNames: ['modal-dialog', 'modal-sm', 'modal-signup'],
templateName: 'signup',
2015-02-08 13:29:39 +08:00
didInsertElement: function() {
},
welcomeUserDidChange: Ember.observer('controller.welcomeUser', function() {
if (this.get('controller.welcomeUser')) {
Ember.run.scheduleOnce('afterRender', this, function() {
this.$('.signup-welcome').hide().fadeIn();
});
}
})
2015-02-08 13:29:39 +08:00
});