From f01c4e84b0d5ccce05916d6bab2e6c3b01740266 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 23 Sep 2015 15:59:37 +0200 Subject: [PATCH] [FIX] website_event: unnecessary POST call --- addons/website_event/static/src/js/website_geolocation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +});