From e7a654eba30647cc69b4c22cffdd6f849f4594c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 10 Aug 2012 15:05:42 +0200 Subject: [PATCH] [REF] mail_thread: refactoring of Chatter. Followers are now managed by another widget (mail.followers). Code removed from mail.js to mail_followers.js, same for xml. Mail_group is the test-object to receive tne new widget, specified in form view. bzr revid: tde@openerp.com-20120810130542-0dern12lk4e7yfc9 --- addons/mail/__openerp__.py | 2 + addons/mail/mail_group_view.xml | 5 +- addons/mail/static/src/css/mail.css | 6 +- addons/mail/static/src/js/mail.js | 71 +--------- addons/mail/static/src/js/mail_followers.js | 125 ++++++++++++++++++ addons/mail/static/src/xml/mail.xml | 20 --- addons/mail/static/src/xml/mail_followers.xml | 29 ++++ 7 files changed, 167 insertions(+), 91 deletions(-) create mode 100644 addons/mail/static/src/js/mail_followers.js create mode 100644 addons/mail/static/src/xml/mail_followers.xml diff --git a/addons/mail/__openerp__.py b/addons/mail/__openerp__.py index fea3d603f6a..5c9e4fdf1f8 100644 --- a/addons/mail/__openerp__.py +++ b/addons/mail/__openerp__.py @@ -102,9 +102,11 @@ The main features of the module are: 'js': [ 'static/lib/jquery.expander/jquery.expander.js', 'static/src/js/mail.js', + 'static/src/js/mail_followers.js', ], 'qweb': [ 'static/src/xml/mail.xml', + 'static/src/xml/mail_followers.xml', ], } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/mail/mail_group_view.xml b/addons/mail/mail_group_view.xml index fd40a3ed739..b74c154d9cf 100644 --- a/addons/mail/mail_group_view.xml +++ b/addons/mail/mail_group_view.xml @@ -78,11 +78,12 @@ - - - -
  • - - -
  • - +
    +
    + + + +
    +
    +

    Followers

    +
      +
      +
      + + +
    • + + +
    • + +