diff options
| author | Géry Debongnie <ged@odoo.com> | 2015-03-10 08:49:58 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-03-18 09:23:35 +0100 |
| commit | da73f624b2a3ff329a6cd7f08104519e4b312a14 (patch) | |
| tree | 337133b26852d0e09a0ad109f70fdb08ad1d97da /addons/website_event/static/src/js/website_geolocation.js | |
| parent | a78655e71f4769765874096159cc42cac22022fb (diff) | |
[REF] website_event: update to the new module system
Diffstat (limited to 'addons/website_event/static/src/js/website_geolocation.js')
| -rw-r--r-- | addons/website_event/static/src/js/website_geolocation.js | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/addons/website_event/static/src/js/website_geolocation.js b/addons/website_event/static/src/js/website_geolocation.js index fb00edc5e64..c292ca40833 100644 --- a/addons/website_event/static/src/js/website_geolocation.js +++ b/addons/website_event/static/src/js/website_geolocation.js @@ -1,16 +1,17 @@ -(function() { - "use strict"; - var website = openerp.website; +odoo.define('website_event.geolocation', ['website.snippets.animation'], function (require) { +"use strict"; - website.snippet.animationRegistry.visitor = website.snippet.Animation.extend({ - selector: ".oe_country_events", - start: function () { - var self = this; - $.post( "/event/get_country_event_list", function( data ) { - if(data){ - $( ".country_events_list" ).replaceWith( data ); - } - }); - } - }); -})();
\ No newline at end of file +var animation = require('website.snippets.animation'); + +animation.registry.visitor = animation.Animation.extend({ + selector: ".oe_country_events", + start: function () { + $.post( "/event/get_country_event_list", function( data ) { + if(data){ + $( ".country_events_list" ).replaceWith( data ); + } + }); + } +}); + +}); |
