Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / javascripts / ember / components / editable-prop.js @ 38706719

History | View | Annotate | Download (403 Bytes)

1
App.EditablePropComponent = Ember.Component.extend({
2

    
3
    tagName: 'div',
4
    classNames: ['editable'],
5
    layoutName: 'editable-prop',
6
    isEditable: false,
7

    
8
    actions: {
9
        allowEdit: function(){
10
            this.set('isEditable', true);
11
        },
12
        acceptEditableChanges: function(){
13
            this.set('isEditable', false);
14
            this.sendAction('ok');
15
        },
16
    }
17

    
18
});