blob: c1efa23c2f919a7cc350508df668efd20658ac9c (
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
32
|
odoo.define('website.s_timeline_options', function (require) {
'use strict';
const options = require('web_editor.snippets.options');
options.registry.Timeline = options.Class.extend({
/**
* @override
*/
start: function () {
var $buttons = this.$el.find('we-button');
var $overlayArea = this.$overlay.find('.o_overlay_options_wrap');
$overlayArea.append($('<div/>').append($buttons));
return this._super(...arguments);
},
//--------------------------------------------------------------------------
// Options
//--------------------------------------------------------------------------
/**
* Moves the card to the right/left.
*
* @see this.selectClass for parameters
*/
timelineCard: function (previewMode, widgetValue, params) {
const $timelineRow = this.$target.closest('.s_timeline_row');
$timelineRow.toggleClass('flex-row-reverse flex-row');
},
});
});
|