You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
518 B
19 lines
518 B
odoo.define('theme_silon.featured_product',function(require){
|
|
'use strict';
|
|
|
|
var Animation = require('website.content.snippets.animation');
|
|
var ajax = require('web.ajax');
|
|
|
|
Animation.registry.featured_product = Animation.Class.extend({
|
|
selector : '.featured',
|
|
start: function () {
|
|
var self = this;
|
|
ajax.jsonRpc('/get_featured_product', 'call', {})
|
|
.then(function (data) {
|
|
if(data){
|
|
self.$target.empty().append(data);
|
|
}
|
|
});
|
|
}
|
|
})
|
|
})
|