blob: 5e4b8118aecab91950b0def30e3b1592c5279060 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
odoo.define('survey.print', function (require) {
'use strict';
var publicWidget = require('web.public.widget');
var dom = require('web.dom');
publicWidget.registry.SurveyPrintWidget = publicWidget.Widget.extend({
selector: '.o_survey_print',
//--------------------------------------------------------------------------
// Widget
//--------------------------------------------------------------------------
/**
* @override
*/
start: function () {
var self = this;
return this._super.apply(this, arguments).then(function () {
// Will allow the textarea to resize if any carriage return instead of showing scrollbar.
self.$('textarea').each(function () {
dom.autoresize($(this));
});
});
},
});
return publicWidget.registry.SurveyPrintWidget;
});
|