Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / app / components / volume-el.js @ faad3c72

History | View | Annotate | Download (552 Bytes)

1
App.VolumeElComponent = Ember.Component.extend({
2
    tagName: 'section',
3

    
4
    actions: {
5

    
6
        revealModal: function(){
7

    
8
            var component = Ember.View.views.generic;
9
            component.set('message', '<p>Are you sure you want to dettach this Volume?</p>');
10
            component.set('okCallback', _.bind(function() {
11
                $("#generic").foundation('reveal', 'close');
12
                this.sendAction('ok',this.get('param'));
13
            }, this));
14
            $("#generic").foundation('reveal', 'open');
15
        },
16

    
17
    },
18
});