Initial commit

This commit is contained in:
Juho Teperi
2013-05-13 11:43:34 +03:00
commit fbf8fb087a
44 changed files with 2425 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
define([
'backbone',
'select2'
], function (Backbone) {
var Dropdown = Backbone.View.extend({
events: {
'change': 'change'
},
initialize: function (opts) {
this.$el.select2(opts.select2);
},
open: function () {
this.$el.select2('open');
},
change: function () {
this.trigger('new-leg', this.$el.select2('data'));
this.$el.select2('data', {});
}
});
return Dropdown;
});