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