UNPKG

wejsv2old-plugin-cdp-profile

Version:
24 lines (21 loc) 575 B
App.WeSmallModalComponent = Ember.Component.extend({ // Expose component to delegate's controller init: function() { var self = this; self._super.apply(self, arguments); if (self.get('delegate')) { self.get('delegate').set(self.get('alias') || 'WeSmallModal', self); } }, actions: { ok: function() { this.$('.modal').modal('hide'); this.sendAction('ok', this.get('id')); } }, show: function() { this.$('.modal').modal().on('hidden.bs.modal', function() { this.sendAction('close'); }.bind(this)); } });