Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / javascripts / ember / components / volume-el.js @ c0206109

History | View | Annotate | Download (551 Bytes)

1
App.VolumeElComponent = Ember.Component.extend({
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',this.get('param'));
12
            }, this));
13
            $("#generic").foundation('reveal', 'open');
14
        },
15

    
16
    },
17
});