[FIX] website_mass_mailing: missing requires

`mass_mailing.unsubscribe` depends on

1. `web.ajax`, as it uses `ajax.jsonRpc`
2. `web_editor.base`, to explicitely wait
   for all dependencies to be loaded,
   so the DOM can contain `o_unsubscribe_form`

opw-654396
This commit is contained in:
Denis Ledoux
2015-11-24 11:13:44 +01:00
parent 2190d5a08a
commit 547bab22c8
@@ -124,6 +124,8 @@ animation.registry.newsletter_popup = animation.Class.extend({
odoo.define('mass_mailing.unsubscribe', function (require) {
var ajax = require('web.ajax');
require('web_editor.base'); // wait for implicit dependencies to load
if(!$('.o_unsubscribe_form').length) {
return $.Deferred().reject("DOM doesn't contain '.o_unsubscribe_form'");