diff options
| author | Cedric Snauwaert <csn@openerp.com> | 2014-04-10 17:50:22 +0200 |
|---|---|---|
| committer | Cedric Snauwaert <csn@openerp.com> | 2014-04-10 17:50:22 +0200 |
| commit | 3a4e2649780744f8a80807df4bef5539c5c70a7e (patch) | |
| tree | a5a5e17162da903cc3e17b4ce7d0df6df6fb36d7 /addons/mail/static/src | |
| parent | 3ba23748bcbc5f75e66d085315e974ed19c6d622 (diff) | |
[FIX]use bootstrap modal windows. refactor and cleaned from trunk-ui-to-boostrap-modal
bzr revid: csn@openerp.com-20140410155022-3cqys3zc55idc4vg
Diffstat (limited to 'addons/mail/static/src')
| -rw-r--r-- | addons/mail/static/src/css/mail.css | 4 | ||||
| -rw-r--r-- | addons/mail/static/src/js/mail_followers.js | 15 |
2 files changed, 7 insertions, 12 deletions
diff --git a/addons/mail/static/src/css/mail.css b/addons/mail/static/src/css/mail.css index aef0131346a..0abd8ab1b4e 100644 --- a/addons/mail/static/src/css/mail.css +++ b/addons/mail/static/src/css/mail.css @@ -664,13 +664,9 @@ .openerp .oe_followers .oe_partner .oe_hidden{ display: none; } -.openerp.ui-dialog .ui-dialog-titlebar .ui-dialog-title{ - padding-right: 20px; -} .openerp .oe_followers .oe_show_more{ cursor: pointer; } - /* ---------------- MESSAGES BODY ------------------ */ .openerp .oe_mail .oe_msg_content .oe_blockquote, .openerp .oe_mail .oe_msg_content blockquote { diff --git a/addons/mail/static/src/js/mail_followers.js b/addons/mail/static/src/js/mail_followers.js index 04f01efb8af..4933ce542a7 100644 --- a/addons/mail/static/src/js/mail_followers.js +++ b/addons/mail/static/src/js/mail_followers.js @@ -94,19 +94,18 @@ openerp_mail_followers = function(session, mail) { var $currentTarget = $(event.currentTarget); var user_pid = $currentTarget.data('id'); $('div.oe_edit_actions').remove(); - self.$dialog = new session.web.dialog($('<div class="oe_edit_actions">'), { - modal: true, - width: 'auto', - height: 'auto', + self.$dialog = new session.web.Dialog(this, { + destroy_on_close: false, + modal_size: 'small', title: _t('Edit Subscription of ') + $currentTarget.siblings('a').text(), buttons: [ { text: _t("Apply"), click: function() { self.do_update_subscription(event, user_pid); - $(this).dialog("close"); + this.parents('.modal').modal('hide'); }}, - { text: _t("Cancel"), click: function() { $(this).dialog("close"); }} + { text: _t("Cancel"), click: function() { this.parents('.modal').modal('hide'); }} ], - }); + }, "<div class='oe_edit_actions'>").open(); return self.fetch_subtypes(user_pid); }, @@ -272,7 +271,7 @@ openerp_mail_followers = function(session, mail) { display_subtypes:function (data, id, dialog) { var self = this; if (dialog) { - var $list = self.$dialog; + var $list = self.$dialog.$el; } else { var $list = this.$('.oe_subtype_list ul'); |
