Skip to content

Commit

Permalink
[FIX] website_event: restore country events option
Browse files Browse the repository at this point in the history
With odoo@ac8b0fc,
the 'country_events' class was renamed to 'oe_country_events'. This was
done correctly for JS animations and snippets but not for the 'Country
Events' option in the customize menu. This made the option useless.

This commit solves the problem by supporting the two classes (as it
is a stable fix).

closes odoo#30662
  • Loading branch information
qsm-odoo committed Jan 29, 2019
1 parent 4a5862a commit cc4d57f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addons/website_event/static/src/js/website_geolocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ odoo.define('website_event.geolocation', function (require) {
var animation = require('web_editor.snippets.animation');

animation.registry.visitor = animation.Class.extend({
selector: ".oe_country_events",
selector: ".oe_country_events, .country_events",
start: function () {
var self = this;
$.get("/event/get_country_event_list").then(function( data ) {
if(data){
$( ".country_events_list" ).replaceWith( data );
self.$(".country_events_list").replaceWith( data );
}
});
}
Expand Down

0 comments on commit cc4d57f

Please sign in to comment.