root / snf-cyclades-app / synnefo / ui / new_ui / ui / javascripts / ember / components / volume-el.js @ 82189820
History | View | Annotate | Download (533 Bytes)
1 | 74c8da56 | Olga Brani | App.VolumeElComponent = Ember.Component.extend({ |
---|---|---|---|
2 | 74c8da56 | Olga Brani | tagName: 'section', |
3 | 82189820 | Olga Brani | actions: {
|
4 | 82189820 | Olga Brani | |
5 | 82189820 | Olga Brani | revealModal: function(){ |
6 | 82189820 | Olga Brani | |
7 | 82189820 | Olga Brani | var component = Ember.View.views.generic;
|
8 | 82189820 | Olga Brani | component.set('message', '<p>Are you sure you want to dettach this Volume?</p>'); |
9 | 82189820 | Olga Brani | component.set('okCallback', _.bind(function() { |
10 | 82189820 | Olga Brani | $("#generic").foundation('reveal', 'close'); |
11 | 82189820 | Olga Brani | this.sendAction('ok'); |
12 | 82189820 | Olga Brani | }, this));
|
13 | 82189820 | Olga Brani | $("#generic").foundation('reveal', 'open'); |
14 | 82189820 | Olga Brani | }, |
15 | 82189820 | Olga Brani | |
16 | 82189820 | Olga Brani | }, |
17 | 74c8da56 | Olga Brani | }); |