$('#email_body_html').addClass('oe_dirty');
openerp.website.editor_bar.edit();
- event.preventDefault();
+ ev.preventDefault();
});
});
+ website.EditorBar.include({
+ edit: function () {
+ this._super();
+ $('body').on('click','#save_and_continue',_.bind(this.save_and_continue));
+ },
+ save_and_continue: function() {
+ openerp.website.editor_bar.save();
+ window.location = $("#save_and_continue").attr("href");
+ }
+ });
})();
</div>
</div>
<div id="email_designer" class="mb32" t-att-style="mode != 'email_designer' and 'display: none' or ''">
- <a class="mt16 btn btn-primary pull-right"
+ <a class="mt16 btn btn-primary pull-right" id="save_and_continue"
t-attf-href="/web#return_label=Website&model=#{model}&id=#{res_id}&view_type=form">
Save and Continue
</a>