From 0ca634e6a4299bca613428dcdc0448f9906e3a99 Mon Sep 17 00:00:00 2001 From: Antonin Bourguignon Date: Fri, 6 Jul 2012 17:58:26 +0200 Subject: [PATCH] [RM] the dropdown feature isn't a top priority, after all bzr revid: abo@openerp.com-20120706155826-i271xel4zduvmq6g --- .../portal_hr_employee_view.xml | 12 +----- .../static/src/css/portal_hr_employees.css | 13 ------ .../static/src/js/portal_hr_employees.js | 40 ------------------- 3 files changed, 2 insertions(+), 63 deletions(-) delete mode 100644 addons/portal_hr_employees/static/src/js/portal_hr_employees.js diff --git a/addons/portal_hr_employees/portal_hr_employee_view.xml b/addons/portal_hr_employees/portal_hr_employee_view.xml index 2ee9539db39..8278bd81c14 100644 --- a/addons/portal_hr_employees/portal_hr_employee_view.xml +++ b/addons/portal_hr_employees/portal_hr_employee_view.xml @@ -26,27 +26,19 @@

Meet the team

- +
- - - -

- () + ()

  • diff --git a/addons/portal_hr_employees/static/src/css/portal_hr_employees.css b/addons/portal_hr_employees/static/src/css/portal_hr_employees.css index 619c95f408d..d153f8c52fb 100644 --- a/addons/portal_hr_employees/static/src/css/portal_hr_employees.css +++ b/addons/portal_hr_employees/static/src/css/portal_hr_employees.css @@ -9,16 +9,3 @@ width: 65px; height: 65px; } - -/* Dropdown menu */ -.openerp .oe_portal_crm_contact .oe_employee_vignette .oe_dropdown_toggle { - position: absolute; - top: 10px; - right: 5px; -} -.openerp .oe_portal_crm_contact .oe_employee_vignette .oe_dropdown_arrow:after { - border-top: 4px solid transparent; -} -.openerp .oe_portal_crm_contact .oe_employee_vignette:hover .oe_dropdown_arrow:after { - border-top: 4px solid #404040; -} diff --git a/addons/portal_hr_employees/static/src/js/portal_hr_employees.js b/addons/portal_hr_employees/static/src/js/portal_hr_employees.js deleted file mode 100644 index 99d0c5a1cbb..00000000000 --- a/addons/portal_hr_employees/static/src/js/portal_hr_employees.js +++ /dev/null @@ -1,40 +0,0 @@ -openerp.portal_hr_employees = function(session) { - /* - * Extend the many2many_kanban widget and add it a few things such - * as delegates. - */ - - // phe: short name for "portal hr employees" - var phe = session.portal_hr_employees = {}; - - phe.many2many_kanban_custom = session.web.form.FieldMany2ManyKanban.extend({ - start: function() { - var self = this; - - this._super.apply(this, arguments); - - // add events - this.add_events(); - }, - add_events: function() { - var self = this; - - // event: make an employee public - this.$element.delegate('a.oe_employee_make_public', 'click', function (e) { - console.log('make employee#'+$(this).attr('data-id')+' public'); - }); - - // event: make an employee private - this.$element.delegate('a.oe_employee_make_private', 'click', function (e) { - console.log('make employee#'+$(this).attr('data-id')+' private'); - }); - - // event: make an employee portal - this.$element.delegate('a.oe_employee_make_portal', 'click', function (e) { - console.log('make employee#'+$(this).attr('data-id')+' portal'); - }); - }, - }); - - session.web.form.widgets.add('many2many_kanban_custom', 'openerp.portal_hr_employees.many2many_kanban_custom'); -}