summaryrefslogtreecommitdiff
path: root/addons/share/static/src/js
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2012-03-27 12:14:53 +0200
committerThibault Delavallée <tde@openerp.com>2012-03-27 12:14:53 +0200
commita945ee82c93ce0df22df09c19c6bde50e54b6eb1 (patch)
tree5a290358e8959e30f4b8d234648dd56e1c34897c /addons/share/static/src/js
parentc7e1656c1140968f436c50fb03bb6a8e3776f55c (diff)
[REF] Share link is now a button, not a clickable image anymore
bzr revid: tde@openerp.com-20120327101453-epjtcr4etwu52js2
Diffstat (limited to 'addons/share/static/src/js')
-rw-r--r--addons/share/static/src/js/share.js6
1 files changed, 3 insertions, 3 deletions
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();