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.
 
 
 
 
 

20 lines
756 B

/** @odoo-module **/
import { jsonrpc } from "@web/core/network/rpc_service";
import publicWidget from "@web/legacy/js/public/public_widget";
import animations from "@website/js/content/snippets.animation";
// Defines a new animation class called get_product_tab by extending Animation.Class.
// This class is used to perform an animation when selecting elements with the
// class .college_location_class.
publicWidget.registry.CollegeLocation = animations.Animation.extend({
selector : '.college_location_class',
start() {
var self = this;
jsonrpc('/get_college_locations', {}).then(function (data){
if(data){
self.$target.empty().append(data);
}
})
}
});