summaryrefslogtreecommitdiff
path: root/addons/website_event/static/src/js/website_geolocation.js
diff options
context:
space:
mode:
authorXavier Morel <xmo@odoo.com>2015-09-23 15:59:37 +0200
committerOlivier Dony <odo@openerp.com>2015-10-01 01:36:49 +0200
commitf01c4e84b0d5ccce05916d6bab2e6c3b01740266 (patch)
treedae60846e7096760c2b3820c9322148aec45060f /addons/website_event/static/src/js/website_geolocation.js
parent88b63a9b1957076bc05ce93270099b11e15cc851 (diff)
[FIX] website_event: unnecessary POST call
Diffstat (limited to 'addons/website_event/static/src/js/website_geolocation.js')
-rw-r--r--addons/website_event/static/src/js/website_geolocation.js4
1 files 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
+});