diff --git a/addons/website_event/static/src/js/website_geolocation.js b/addons/website_event/static/src/js/website_geolocation.js index 54a67499cdb..43fb2209aef 100644 --- a/addons/website_event/static/src/js/website_geolocation.js +++ b/addons/website_event/static/src/js/website_geolocation.js @@ -6,7 +6,7 @@ var animation = require('web_editor.snippets.animation'); animation.registry.visitor = animation.Class.extend({ selector: ".oe_country_events", start: function () { - $.post( "/event/get_country_event_list", function( data ) { + $.get("/event/get_country_event_list").then(function( data ) { if(data){ $( ".country_events_list" ).replaceWith( data ); } @@ -14,4 +14,4 @@ animation.registry.visitor = animation.Class.extend({ } }); -}); \ No newline at end of file +});