root / snf-cyclades-app / synnefo / ui / new_ui / ui / javascripts / ember / views / add-tag.js @ 86860c5e
History | View | Annotate | Download (382 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 |
this.$().find('.show-add-tag').click(function(e) { |
9 |
e.preventDefault(); |
10 |
$(this).parents('.add-tag').find('.snf-color-picker').slideToggle('slow'); |
11 |
}); |
12 |
}, |
13 |
|
14 |
}); |