diff options
| author | Kuldeep Joshi (OpenERP) <kjo@tinyerp.com> | 2012-06-28 12:21:33 +0530 |
|---|---|---|
| committer | Kuldeep Joshi (OpenERP) <kjo@tinyerp.com> | 2012-06-28 12:21:33 +0530 |
| commit | c4a1d376d0cb3d46e40ebe9747fb57da1d748e59 (patch) | |
| tree | c4478af3f41bdbfd76ec070898cf68157d4b2036 /addons/share/static/src | |
| parent | 7d990ad9191411b29a985d256e130f4745557f61 (diff) | |
| parent | 997fe404b317ca0e963cf5a59c38bc6f524702b0 (diff) | |
[MERGE] lp:openobject-addons
bzr revid: kjo@tinyerp.com-20120628065133-slxcg00b8n22jphh
Diffstat (limited to 'addons/share/static/src')
| -rw-r--r-- | addons/share/static/src/css/share.css | 4 | ||||
| -rw-r--r-- | addons/share/static/src/js/share.js | 18 | ||||
| -rw-r--r-- | addons/share/static/src/xml/share.xml | 8 |
3 files changed, 15 insertions, 15 deletions
diff --git a/addons/share/static/src/css/share.css b/addons/share/static/src/css/share.css index 2cab9c6d2f2..997c070fe54 100644 --- a/addons/share/static/src/css/share.css +++ b/addons/share/static/src/css/share.css @@ -1,7 +1,7 @@ -button.oe-share-mail { +button.oe_share_mail { display: none; } -a.oe-share_link, a.oe-share { +a.oe_share_link, a.oe_share { display: none; } diff --git a/addons/share/static/src/js/share.js b/addons/share/static/src/js/share.js index 3563a4bb859..e88616546a3 100644 --- a/addons/share/static/src/js/share.js +++ b/addons/share/static/src/js/share.js @@ -58,7 +58,7 @@ openerp.share = function(session) { self.add_items('other', [{ label: 'Share', callback: self.on_sidebar_click_share, - classname: 'oe-share', + classname: 'oe_share', }]); }); }, @@ -72,7 +72,7 @@ openerp.share = function(session) { start: function() { start_res = this._super.apply(this, arguments); if (has_action_id) { - this.$element.find('button.oe-share-mail').show(); + this.$element.find('button.oe_share_mail').show(); } return start_res; } @@ -83,12 +83,12 @@ openerp.share = function(session) { var self = this; this.check_if_action_is_defined(); 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('button.oe-share-mail', 'click', self.on_click_share_mail); + 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('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(); + self.$element.find('a.oe_share_link').remove(); + self.$element.find('a.oe_share').remove(); }); return this._super.apply(this, arguments); }, @@ -96,8 +96,8 @@ openerp.share = function(session) { check_if_action_is_defined: function() { if (this.action && this.action.id) { has_action_id = true; - this.$element.find('a.oe-share_link').show(); - this.$element.find('a.oe-share').show(); + this.$element.find('a.oe_share_link').show(); + this.$element.find('a.oe_share').show(); } else { has_action_id = false; diff --git a/addons/share/static/src/xml/share.xml b/addons/share/static/src/xml/share.xml index df9cb165c36..e51dc135c0b 100644 --- a/addons/share/static/src/xml/share.xml +++ b/addons/share/static/src/xml/share.xml @@ -4,15 +4,15 @@ <templates id="template" xml:space="preserve"> <t t-extend="ViewManagerAction"> - <t t-jquery=".oe-shortcut-toggle" t-operation="after"> - <a class="oe-share_link" href="#share_link" title="Link or embed..."><img t-att-src='_s + "/share/static/src/img/share.png"'/></a> - <a class="oe-share" href="#share" title="Share with..."><img t-att-src='_s + "/share/static/src/img/share.png"'/></a> + <t t-jquery=".oe_shortcuts_toggle" t-operation="after"> + <a class="oe_share_link" href="#share_link" title="Link or embed..."><img t-att-src='_s + "/share/static/src/img/share.png"'/></a> + <a class="oe_share" href="#share" title="Share with..."><img t-att-src='_s + "/share/static/src/img/share.png"'/></a> </t> </t> <t t-extend="RecordThread"> <t t-jquery="button.oe_mail_button_unfollow" t-operation="after"> - <button type="button" class="oe-share-mail oe_mail_button_mouseout">Invite</button> + <button type="button" class="oe_share_mail oe_mail_button_mouseout">Invite</button> </t> </t> |
