diff options
| author | Thibault Delavallée <tde@openerp.com> | 2012-03-27 12:14:53 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2012-03-27 12:14:53 +0200 |
| commit | a945ee82c93ce0df22df09c19c6bde50e54b6eb1 (patch) | |
| tree | 5a290358e8959e30f4b8d234648dd56e1c34897c | |
| parent | c7e1656c1140968f436c50fb03bb6a8e3776f55c (diff) | |
[REF] Share link is now a button, not a clickable image anymore
bzr revid: tde@openerp.com-20120327101453-epjtcr4etwu52js2
| -rw-r--r-- | addons/share/static/src/css/share.css | 4 | ||||
| -rw-r--r-- | addons/share/static/src/js/share.js | 6 | ||||
| -rw-r--r-- | 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 @@ <t t-extend="RecordThread"> <t t-jquery=".oe_mail_button_follow" t-operation="before"> - <a class="oe-share-mail" href="#share" title="Share with..."><img t-att-src='_s + "/share/static/src/img/share.png"'/></a> + <button type="button" class="oe-share-mail">Invite</button> </t> </t> |
