framework/ember/app/views/signup.js

20 lines
491 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('welcomeUser', function() {
if (this.get('welcomeUser')) {
Ember.run.scheduleOnce('afterRender', this, function() {
this.$('.signup-welcome').addClass('in');
});
}
})
2015-02-08 13:29:39 +08:00
});