blob: 07277be6c57806fdff63bfe62c701578e49f9843 (
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('website_slides_survey.fullscreen', function (require) {
"use strict";
var core = require('web.core');
var QWeb = core.qweb;
var Fullscreen = require('website_slides.fullscreen');
Fullscreen.include({
xmlDependencies: (Fullscreen.prototype.xmlDependencies || []).concat(
["/website_slides_survey/static/src/xml/website_slides_fullscreen.xml"]
),
/**
* Extend the _renderSlide method so that slides of type "certification"
* are also taken into account and rendered correctly
*
* @private
* @override
*/
_renderSlide: function (){
var def = this._super.apply(this, arguments);
var $content = this.$('.o_wslides_fs_content');
if (this.get('slide').type === "certification"){
$content.html(QWeb.render('website.slides.fullscreen.certification',{widget: this}));
}
return Promise.all([def]);
},
});
});
|