diff --git a/addons/mail/static/src/css/mail.css b/addons/mail/static/src/css/mail.css index cf2f7d43a20..03f1078e6d5 100644 --- a/addons/mail/static/src/css/mail.css +++ b/addons/mail/static/src/css/mail.css @@ -275,14 +275,6 @@ display: none; } -.openerp ul.oe_mail_debug { - color: #888; -} - -.openerp ul.oe_mail_debug li { - margin-right: 12px; -} - /* ------------------------------------------------------------ */ /* mail.compose.message form view & OpenERP hacks /* ------------------------------------------------------------ */ diff --git a/addons/mail/static/src/js/mail.js b/addons/mail/static/src/js/mail.js index 3872a486565..8ce050fd144 100644 --- a/addons/mail/static/src/js/mail.js +++ b/addons/mail/static/src/js/mail.js @@ -319,11 +319,11 @@ openerp.mail = function(session) { reinit: function() { var self = this; if (! this.form_view) return; - // debugger var call_defer = this.ds_compose.call('default_get', [['subject', 'body_text', 'body_html', 'dest_partner_ids'], this.ds_compose.get_context()]).then( function (result) { self.form_view.on_processed_onchange({'value': result}, []); }); + return call_defer; }, /** @@ -586,12 +586,8 @@ openerp.mail = function(session) { do_customize_display: function() { if (this.display.show_post_comment) { this.$element.find('div.oe_mail_thread_action').eq(0).show(); } - if (this.session.debug) { - this.$element.find('ul.oe_mail_debug').toggleClass('oe_mail_invisible'); - } }, - /** * Bind events in the widget. Each event is slightly described * in the function. */ @@ -656,12 +652,6 @@ openerp.mail = function(session) { self.instantiate_composition_form('reply', email_mode, formatting, msg_id); event.preventDefault(); }); - // event: click on "Debug data" in msg side menu (email style) - this.$element.find('div.oe_mail_thread_display').delegate('a.oe_mail_msg_debug', 'click', function (event) { - var act_dom = $(event.srcElement).parents('div.oe_mail_msg_content').find('ul.oe_mail_debug'); - act_dom.toggleClass('oe_mail_invisible'); - event.preventDefault(); - }); }, destroy: function () { diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml index 5d76096fb9a..bf8d7fd1475 100644 --- a/addons/mail/static/src/xml/mail.xml +++ b/addons/mail/static/src/xml/mail.xml @@ -136,7 +136,6 @@ -->