diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/website/static/src/js/user_custom_javascript.js | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/website/static/src/js/user_custom_javascript.js')
| -rw-r--r-- | addons/website/static/src/js/user_custom_javascript.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/addons/website/static/src/js/user_custom_javascript.js b/addons/website/static/src/js/user_custom_javascript.js new file mode 100644 index 00000000..a68d298b --- /dev/null +++ b/addons/website/static/src/js/user_custom_javascript.js @@ -0,0 +1,24 @@ +// +// 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); + }, +}) +}); +*/ |
