Statistics
| Branch: | Tag: | Revision:

root / snf-cyclades-app / synnefo / ui / new_ui / ui / app / views / add-tag.js @ faad3c72

History | View | Annotate | Download (455 Bytes)

1
App.AddTagView = Ember.View.extend({
2

    
3
    classNames: ['add-tag'],
4
    templateName: 'add-tag',
5

    
6
    didInsertElement: function() {
7
        $('#colorpicker').farbtastic('#color');
8
        var that = this;
9
        this.$().find('.show-add-tag').click(function(e) {
10
            e.preventDefault();
11
            that.slideUpEl();
12
        });
13
    },
14

    
15
    slideUpEl: function () {
16
        $('.add-tag').find('.snf-color-picker').slideToggle('slow');
17
    }
18

    
19
});