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.
18 lines
570 B
18 lines
570 B
odoo.define('theme_autofly.dynamic_blog_snippet', function(require){
|
|
'use strict';
|
|
|
|
var Animation = require('website.content.snippets.animation');
|
|
var ajax = require('web.ajax');
|
|
Animation.registry.blog_snippet = Animation.Class.extend({
|
|
selector : '.blog_index',
|
|
start: function(){
|
|
var self = this;
|
|
ajax.jsonRpc('/dynamic_blog', 'call', {})
|
|
.then(function (data) {
|
|
if(data){
|
|
self.$target.empty().append(data);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
});
|