2018-01-16 11:34:37 +01:00
|
|
|
flectra.define('website_event_questions.website_event_questions', function (require) {
|
2018-01-16 06:58:15 +01:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var EventRegistrationForm = require('website_event.website_event');
|
|
|
|
|
|
|
|
EventRegistrationForm.include({
|
|
|
|
on_click: function (ev) {
|
|
|
|
var def = this._super.apply(this, arguments);
|
|
|
|
def.then(function () {
|
|
|
|
$("select.o_specific_answer,select.o_general_answer").each(function (index, elem) {
|
|
|
|
$(elem).select2({ minimumResultsForSearch: -1, width: '100%' });
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|