[CHG] Ashes to ashes, dashes to underscores.

bzr revid: fme@openerp.com-20120627141352-7a6d23iebv03rcv3
This commit is contained in:
Fabien Meghazi 2012-06-27 16:13:52 +02:00
parent ce7fb5bb37
commit cd4c3b6c91
8 changed files with 33 additions and 33 deletions

View File

@ -884,7 +884,7 @@ openerp.point_of_sale = function(db) {
*/
var CategoryWidget = db.web.OldWidget.extend({
start: function() {
this.$element.find(".oe-pos-categories-list a").click(_.bind(this.changeCategory, this));
this.$element.find(".oe_pos_categories_list a").click(_.bind(this.changeCategory, this));
},
template_fct: qweb_template('pos-category-template'),
renderElement: function() {
@ -1009,7 +1009,7 @@ openerp.point_of_sale = function(db) {
},
start: function() {
$('button#validate-order', this.$element).click(_.bind(this.validateCurrentOrder, this));
$('.oe-back-to-products', this.$element).click(_.bind(this.back, this));
$('.oe_back_to_products', this.$element).click(_.bind(this.back, this));
},
back: function() {
this.shop.get('selectedOrder').set({"step": "products"});

View File

@ -120,7 +120,7 @@
</table>
</div>
<div class="pos-payment-buttons">
<button class="oe-back-to-products">
<button class="oe_back_to_products">
<img src="/web/static/src/img/icons/gtk-go-back.png"></img>
Back to Products</button>
<button id="validate-order">
@ -147,13 +147,13 @@
<t t-name="pos-category-template">
<header>
<ol class="breadcrumb">
<li class="oe-pos-categories-list">
<li class="oe_pos_categories_list">
<a href="javascript:void(0)">
<img src="/point_of_sale/static/src/img/home.png" class="homeimg" />
</a>
</li>
<t t-foreach="breadcrumb" t-as="category">
<li class="oe-pos-categories-list">
<li class="oe_pos_categories_list">
<img src="/point_of_sale/static/src/img/bc-arrow.png" class="bc-arrow" />
<a href="javascript:void(0)" t-att-data-category-id="category.id">
<t t-esc="category.name"/>
@ -169,7 +169,7 @@
<div id="categories">
<ol>
<t t-foreach="categories" t-as="category">
<li class="oe-pos-categories-list">
<li class="oe_pos_categories_list">
<a href="javascript:void(0)" t-att-data-category-id="category.id" class="button">
<t t-esc="category.name"/>
</a>

View File

@ -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;
}

View File

@ -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;

View File

@ -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>

View File

@ -2,7 +2,7 @@
.oe_systray_shortcuts {
margin: 3px;
}
.oe-shortcut-toggle {
.oe_shortcuts_toggle {
height: 20px;
margin-top: 3px;
padding: 0;
@ -12,10 +12,10 @@
background: url(/web/static/src/img/add-shortcut.png) no-repeat center center;
float: left;
}
.oe-shortcut-remove{
.oe_shortcuts_remove{
background: url(/web/static/src/img/remove-shortcut.png) no-repeat center center;
}
.oe-shortcuts {
.oe_shortcuts {
position: absolute;
margin: 0;
padding: 6px 15px;
@ -25,7 +25,7 @@
height: 17px;
line-height: 1.2;
}
.oe-shortcuts ul {
.oe_shortcuts ul {
display: block;
overflow: hidden;
list-style: none;
@ -33,7 +33,7 @@
padding: 0;
margin: 0;
}
.oe-shortcuts li {
.oe_shortcuts li {
cursor: pointer;
display: -moz-inline-stack;
display: inline-block;
@ -47,10 +47,10 @@
vertical-align: top;
}
.oe-shortcuts li:hover {
.oe_shortcuts li:hover {
background-color: #666;
}
.oe-shortcuts li:first-child {
.oe_shortcuts li:first-child {
border-left: none;
padding-left: 0;
}

View File

@ -118,16 +118,16 @@ instance.web.ViewManagerAction.include({
var shortcuts_menu = instance.webclient.user_menu.shortcuts;
var grandparent = this.getParent() && this.getParent().getParent();
// display shortcuts if on the first view for the action
var $shortcut_toggle = this.$element.find('.oe-shortcut-toggle');
var $shortcut_toggle = this.$element.find('.oe_shortcuts_toggle');
if (!this.action.name ||
!(view.view_type === this.views_src[0].view_type
&& view.view_id === this.views_src[0].view_id)) {
$shortcut_toggle.hide();
return;
}
$shortcut_toggle.toggleClass('oe-shortcut-remove', shortcuts_menu.has(self.session.active_id));
$shortcut_toggle.toggleClass('oe_shortcuts_remove', shortcuts_menu.has(self.session.active_id));
$shortcut_toggle.unbind("click").click(function() {
if ($shortcut_toggle.hasClass("oe-shortcut-remove")) {
if ($shortcut_toggle.hasClass("oe_shortcuts_remove")) {
shortcuts_menu.trigger('remove', self.session.active_id);
} else {
shortcuts_menu.trigger('add', {
@ -137,7 +137,7 @@ instance.web.ViewManagerAction.include({
'name': self.action.name
});
}
$shortcut_toggle.toggleClass("oe-shortcut-remove");
$shortcut_toggle.toggleClass("oe_shortcuts_remove");
});
}
});

View File

@ -17,7 +17,7 @@
</t>
<t t-extend="ViewManagerAction">
<t t-jquery="h2.oe_view_title" t-operation="prepend">
<a t-if="widget.flags.display_title !== false" class="oe-shortcut-toggle" title="Add / Remove Shortcut..."
<a t-if="widget.flags.display_title !== false" class="oe_shortcuts_toggle" title="Add / Remove Shortcut..."
href="javascript: void(0)"> </a>
</t>
</t>