* website_blog, website_crm_partner_assign, website_event, website_event_track, website_form, website_forum, website_links, website_mail, website_mail_channel, website_mass_mailing, website_sale, website_sale_comparison, website_sale_delivery, website_sale_stock, website_sale_wishlist, website_slides, website_twitter While using the 'Animation' class of website instead of the frontend 'Widget' class leads to the same behaviors, this refactoring is done for two reasons: - Stop using the confusing 'Animation' name for non-animated behaviors - Instantiation of 'Widget' is slightly faster than 'Animation' Part of https://github.com/odoo/odoo/pull/29442 task-1932066
25 lines
749 B
JavaScript
25 lines
749 B
JavaScript
//
|
|
// This file is meant to regroup your javascript code. You can either copy/past
|
|
// any code that should be executed on each page loading or write your own
|
|
// taking advantage of the Odoo framework to create new behaviors or modify
|
|
// existing ones. For example, doing this will greet any visitor with a 'Hello,
|
|
// world !' message in a popup:
|
|
//
|
|
/*
|
|
odoo.define('website.user_custom_code', function (require) {
|
|
'use strict';
|
|
|
|
var Dialog = require('web.Dialog');
|
|
var publicWidget = require('web.public.widget');
|
|
|
|
publicWidget.registry.HelloWorldPopup = publicWidget.Widget.extend({
|
|
selector: '#wrapwrap',
|
|
|
|
start: function () {
|
|
Dialog.alert(this, "Hello, world!");
|
|
return this._super.apply(this, arguments);
|
|
},
|
|
})
|
|
});
|
|
*/
|