From a945ee82c93ce0df22df09c19c6bde50e54b6eb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 27 Mar 2012 12:14:53 +0200 Subject: [PATCH] [REF] Share link is now a button, not a clickable image anymore bzr revid: tde@openerp.com-20120327101453-epjtcr4etwu52js2 --- addons/share/static/src/css/share.css | 4 +++- addons/share/static/src/js/share.js | 6 +++--- addons/share/static/src/xml/share.xml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/addons/share/static/src/css/share.css b/addons/share/static/src/css/share.css index 8b137891791..c275fed8bf4 100644 --- a/addons/share/static/src/css/share.css +++ b/addons/share/static/src/css/share.css @@ -1 +1,3 @@ - +button.oe-share-mail { + width: 120px; +} diff --git a/addons/share/static/src/js/share.js b/addons/share/static/src/js/share.js index 4d543b001db..54dec1fd6e6 100644 --- a/addons/share/static/src/js/share.js +++ b/addons/share/static/src/js/share.js @@ -1,7 +1,7 @@ openerp.share = function(session) { -function launch_wizard(self, view, user_type, subscribe) { +function launch_wizard(self, view, user_type, invite) { var action = view.getParent().action; var Share = new session.web.DataSet(self, 'share.wizard', view.dataset.get_context()); var domain = new session.web.CompoundDomain(view.dataset.domain); @@ -18,7 +18,7 @@ function launch_wizard(self, view, user_type, subscribe) { action_id: action.id, user_type: user_type || 'embedded', view_type: view.fields_view.type, - subscribe: subscribe || false, + invite: invite || false, }, function(result) { var share_id = result.result; var step1 = Share.call('go_step_1', [[share_id],], function(result) { @@ -69,7 +69,7 @@ session.web.ViewManagerAction.include({ has_share(function() { self.$element.find('a.oe-share_link').click(self.on_click_share_link); self.$element.find('a.oe-share').click(self.on_click_share); - self.$element.delegate('a.oe-share-mail', 'click', self.on_click_share_mail); + self.$element.delegate('button.oe-share-mail', 'click', self.on_click_share_mail); }, function() { self.$element.find('a.oe-share_link').remove(); self.$element.find('a.oe-share').remove(); diff --git a/addons/share/static/src/xml/share.xml b/addons/share/static/src/xml/share.xml index 1d62b38ee7c..d79c2d8501e 100644 --- a/addons/share/static/src/xml/share.xml +++ b/addons/share/static/src/xml/share.xml @@ -12,7 +12,7 @@ - +