flectra/addons/website_event_questions/static/src/js/website_event_questions.js
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

17 lines
535 B
JavaScript

odoo.define('website_event_questions.website_event_questions', function (require) {
'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%' });
});
});
},
});
});