Move forum ember app into a subdir, preparing for admin app to exist alongside

This commit is contained in:
Toby Zerner
2015-03-28 19:10:52 +10:30
parent 62d26e8e0a
commit 950d2f0eb9
210 changed files with 4 additions and 8 deletions

View File

@ -0,0 +1,19 @@
import Ember from 'ember';
/**
A toggle switch.
*/
export default Ember.Component.extend({
layoutName: 'components/ui/switch-input',
classNames: ['checkbox', 'checkbox-switch'],
label: '',
toggleState: true,
didInsertElement: function() {
var component = this;
this.$('input').on('change', function() {
component.get('changed')($(this).prop('checked'), component);
});
}
});