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
591 B
19 lines
591 B
odoo.define('theme_autofly.find_car', function(require){
|
|
'use strict';
|
|
|
|
var Animation = require('website.content.snippets.animation');
|
|
var ajax = require('web.ajax');
|
|
Animation.registry.find_car = Animation.Class.extend({
|
|
selector : '.find_car_class',
|
|
/**Function for getting the car details**/
|
|
start: function(){
|
|
var self = this;
|
|
ajax.jsonRpc('/find_car', 'call', {})
|
|
.then(function (data) {
|
|
if(data){
|
|
self.$el.html(data);
|
|
}
|
|
});
|
|
}
|
|
});
|
|
});
|