[FIX] website_event: unnecessary POST call

This commit is contained in:
Xavier Morel
2015-10-01 01:36:49 +02:00
committed by Olivier Dony
parent 88b63a9b19
commit f01c4e84b0
@@ -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({
}
});
});
});